@rapay/mcp-server 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/handlers.js +3 -3
- package/dist/tools.js +1 -1
- package/package.json +1 -1
package/dist/handlers.js
CHANGED
|
@@ -407,8 +407,8 @@ async function executeSend(args) {
|
|
|
407
407
|
validateSendArgs(args);
|
|
408
408
|
// Convert cents to dollars for CLI (CLI expects dollar amount)
|
|
409
409
|
const amountDollars = args.amount / 100;
|
|
410
|
-
// Calculate fee breakdown (
|
|
411
|
-
const rapayFee = amountDollars * 0.
|
|
410
|
+
// Calculate fee breakdown (2% Ra Pay application fee)
|
|
411
|
+
const rapayFee = amountDollars * 0.02;
|
|
412
412
|
const recipientReceives = amountDollars - rapayFee;
|
|
413
413
|
// If not confirmed, return fee preview (no payment executed)
|
|
414
414
|
// This ensures fee is disclosed BEFORE user authorizes payment
|
|
@@ -424,7 +424,7 @@ async function executeSend(args) {
|
|
|
424
424
|
},
|
|
425
425
|
fee_breakdown: {
|
|
426
426
|
rapay_fee: rapayFee,
|
|
427
|
-
rapay_fee_percent: "
|
|
427
|
+
rapay_fee_percent: "2%",
|
|
428
428
|
recipient_receives: recipientReceives,
|
|
429
429
|
},
|
|
430
430
|
next_step: "Call ra_send again with user_confirmed=true after user approves the fee breakdown.",
|
package/dist/tools.js
CHANGED
|
@@ -18,7 +18,7 @@ const PAYMENT_TOOLS = [
|
|
|
18
18
|
"Step 1: Call with user_confirmed=false to get fee preview (NO payment is made). " +
|
|
19
19
|
"Step 2: Show the fee_breakdown from the response to the user and ask them to confirm. " +
|
|
20
20
|
"Step 3: ONLY after user explicitly approves the fee, call again with user_confirmed=true. " +
|
|
21
|
-
"A
|
|
21
|
+
"A 2% Ra Pay application fee applies. The preview shows exact fees before any money moves. " +
|
|
22
22
|
"COMPLIANCE SCREENING REQUIRED: Before processing, you MUST verify the business_purpose does NOT contain: " +
|
|
23
23
|
"(1) P2P patterns: friend, family, roommate, reimbursement for personal expenses, splitting bills, payback, loan, gift, birthday, holiday " +
|
|
24
24
|
"(2) Money laundering red flags: gift cards, prepaid cards, cryptocurrency purchase, wire transfer " +
|