WhatsApp හරහා payment link ස්වයංක්රීයව යවන්න
WhatsApp හරහා payment link ස්වයංක්රීයව යැවීමට, ගෙවීම් ප්රශ්නවලට 'pay' හෝ 'pix' වැනි වචන මගින් ක්රියාත්මක වන ස්ථිර link එකකින් පිළිතුරු දෙන්න, නැතහොත් පණිවිඩය ඔබේම system එකට යවන්න. එය එම ගනුදෙනුකරුගේ order සඳහා link එකක් සාදා පිළිතුර ලෙස ආපසු ලබා දෙයි. ගනුදෙනුකරු ගෙවීම provider ගේ පිටුවේ කරන අතර, ගෙවීම සාර්ථක වූ පසු ඔබේ system chat එකේ තහවුරු කරයි.
easyCoexistence ඔබ යෙදුමේ තබා ගන්නා WhatsApp Business අංකය Coexistence හරහා Meta ගේ Cloud API වලට සම්බන්ධ කර, ඒ මත automations ධාවනය කරයි: ඔබේ link සමග keyword පිළිතුරක්, ඔබේම යතුර සහිත ඔබේම AI, හෝ සෑම order එකකටම link සාදන system එකට webhook එකක්.
ඔබේ system එකට link එක සාදා reply field එකේ ආපසු දීමට ඇති කාලය.
Stripe Checkout Session එකේ පෙරනිමි ආයු කාලය; එය මිනිත්තු 30 සිට පැය 24 දක්වා සැකසිය හැක.
Stripe මගින් Payment Link එකේ metadata එය සාදන Checkout Sessions වෙත පිටපත් කරයි, එබැවින් ගෙවීම chat එකට trace කළ හැක.
Button වල variable නැති templates automation එකේ Send a template step එකෙන් යැවිය හැක.
Meta හි category එක: පරිශීලකයාගේ ක්රියාවකින් හෝ ඉල්ලීමකින් ප්රේරිත templates සඳහා, ප්රවර්ධන අභිප්රායක් නොමැති.
WhatsApp මගින් payment link ස්වයංක්රීයව යවන ක්රම මොනවාද?
ක්රම පහක් ඇත, කේතයක් නැති ආකාරයේ සිට සම්පූර්ණයෙන් ස්වයංක්රීය ක්රම දක්වා. මිලක් එකක් හෝ store checkout එකක් ඔබේ විකුණුම් ආවරණය කරන්නේ නම් ස්ථිර link එකෙන් ආරම්භ කර, මුදල් වෙනස් වන විට order එකකට link එකකට මාරු වන්න. ඒ සෑම ක්රමයකදීම ගෙවීම සිදුවන්නේ provider ගේ පිටුවේ හෝ යෙදුමේ ය, එබැවින් card අංක, PIX ගෙවීම් සහ රිසිට්පත් automation සහ එහි run log එකෙන් පිටත පවතී:
ස්ථිර link එකක් keyword මගින් යවන්නේ කෙසේද?
Start from an example යටතේ Keyword reply වලින් ආරම්භ කරන්න. Trigger: Has keyword, Contains, ගනුදෙනුකරුවන් ගෙවීමට අවශ්ය වන විට භාවිත කරන වචන සමග. Step: link එක තනි රේඛාවක් මත ඇති Reply with text, එවිට එය tap කිරීමට හෝ copy කිරීමට හැක, ඔබ කැමති නම් {{first_name}} සමග. PIX යතුරක් හෝ බැංකු මාරු යොමුවක් ද ඒ ආකාරයෙන්ම ක්රියා කරයි. Contains වචන ඇතුළතද ගැලපෙන බැවින්, 'pay' PayPal සහ repay සඳහා ද ක්රියා කරයි, එය සාමාන්යයෙන් යෝග්ය වන නමුත්, 'link' පමණක් බොහෝ අසම්බන්ධ පණිවිඩ සඳහා ක්රියා කරයි. Keyword automation එක ඔබේ AI සහායකයා ට පෙර පිළිතුරු දෙන බැවින්, link එක නිවැරදිව පවතී, කිසි විටෙක නැවත ලියා නොදේ.
Keywords (Contains): pay, payment, pagar, pagamento, pix, pago, link de pago, checkout
Reply with text:
Hi {{first_name}}! You can pay securely here:
https://buy.stripe.com/test_cN25nr0iZ7bUa7meUY
Prefer PIX? Key: payments@bloomcafe.example
Send the receipt here when you are done and we will confirm.ගනුදෙනුකරු සූදානම් වූ විට ඔබේ AI link එක යැවිය හැකිද?
ඔව්, link එක එහි Instructions තුළ ඇත්නම්. Reply with AI step එක Instructions සහ chat එකෙන් ලියයි, එබැවින් link එක එතැන තබා, එය යැවිය යුතු කාලය සහ පළමුව තහවුරු කළ යුතු අනුපිළිවෙල සඳහා රීතියක් එක් කරන්න. Model විසින් දුන් URL එකක් වචනාර්ථයෙන් පිටපත් කරයි, සහ Instructions යටතේ එක් කළ රීතිය මිල නිර්මාණය කිරීම තහනම් කරයි, එබැවින් මුදල් ලැයිස්තුගත කරන්න හෝ ඒවා කොහෙන් ලැබෙන්නේද යන්න සඳහන් කරන්න.
ආරක්ෂාව සඳහා රේඛා දෙකක් එක් කරන්න: model විසින් කිසි විටෙක card අංක හෝ මුරපද ඉල්ලිය යුතු නොවේ, සහ ආපසු ගෙවීම් හෝ අසාර්ථක ගෙවීම් ගැන ඕනෑම දෙයක් පුද්ගලයෙකුට යොමු කළ යුතුය. Automation එක ක්රියාත්මක කිරීමට පෙර දෙකම Try it සමග පරීක්ෂා කරන්න, වෙනත් භාෂාවක ප්රශ්නයක් ඇතුළුව.
Payments
- When the customer confirms the order and wants to pay, send this link on its own line:
https://buy.stripe.com/test_cN25nr0iZ7bUa7meUY
- Before sending it, repeat the items and the total from the price list above.
- Never ask for card numbers, PINs, passwords or one-time codes. The customer pays on the link.
- Refunds, double charges or failed payments: say someone from our team will reply here shortly.ඔබේ system එක සෑම order එකකටම link එකක් සාදන්නේ කෙසේද?
Call my webhook step එක හරහා. ඔබේ endpoint එක X-EC-Signature සත්යාපනය කරයි, ගනුදෙනුකරුගේ විවෘත order එක contact.wa_id මගින් හෝ message.text හි ඇති order අංකය මගින් සොයයි, නිශ්චිත මුදල සමග provider ගෙන් link එකක් ඉල්ලයි, සහ එය reply field එකේ ආපසු දෙයි. Order id සහ WhatsApp අංකය link එකේ metadata තුළ තබන්න, එවිට ගෙවීම පසුව ආපසු ගැලපිය හැක.
තත්පර 20ට අඩුවෙන් තබන්න: provider වෙත එක ඇමතුමක් සාමාන්යයෙන් තත්පර එකක් හෝ දෙකක් ගනී. ගනුදෙනුකරු එම order එක සඳහා දෙවරක් ඉල්ලන්නේ නම්, තවමත් විවෘත link එකක් නැවත භාවිත කරන්න. පරීක්ෂණ වලදී dry_run true වේ: නියැදි වාක්යයක් ආපසු දෙන්න, කිසිවක් නොසාදන්න.
// signed(req) is the X-EC-Signature check from the live-data page, with this automation's secret.
app.post("/whatsapp/pay", express.text({ type: "application/json" }), async (req, res) => {
if (!signed(req)) return res.status(401).end();
const { dry_run, contact } = JSON.parse(req.body);
const order = await openOrderFor(contact.wa_id); // your system: this customer's unpaid order
if (!order) return res.json({ reply: "I could not find an open order for this number. Send the order number and I will check." });
if (dry_run) return res.json({ reply: "Test: the payment link for order " + order.id + " would go here." });
const form = new URLSearchParams({
mode: "payment",
success_url: "https://shop.example/thanks",
"line_items[0][quantity]": "1",
"line_items[0][price_data][currency]": order.currency, // e.g. "usd" or "brl"
"line_items[0][price_data][unit_amount]": String(order.amountCents),
"line_items[0][price_data][product_data][name]": "Order " + order.id,
"metadata[order_id]": order.id,
"metadata[wa_id]": contact.wa_id,
});
const r = await fetch("https://api.stripe.com/v1/checkout/sessions", {
method: "POST",
headers: { Authorization: "Bearer " + process.env.STRIPE_SECRET_KEY },
body: form,
});
const session = await r.json();
if (!session.url) return res.json({ reply: "The payment link is not ready yet. Someone from our team will send it here shortly." });
res.json({ reply: "Order " + order.id + ", total " + order.total + ". Pay here:\n" + session.url + "\nThe link stays open for 24 hours." });
});ගෙවීමෙන් පසු ගනුදෙනුකරුට තහවුරු කිරීම ලැබෙන්නේ කෙසේද?
ඔබේ system එකෙන්, provider ගෙවීම වාර්තා කරන විට, උදාහරණයක් ලෙස Stripe හි checkout.session.completed event එක ඔබේ metadata සමග. එයින් WhatsApp අංකය සහ order id කියවා, get_api_credentials ලබා දෙන send endpoint සහ access token සමග Meta හි Cloud API හරහා පණිවිඩයක් යවන්න. ගනුදෙනුකරුගේ අවසාන පණිවිඩයෙන් පැය 24ක් ඇතුළත සරල text වැඩ කරයි. ඊට පසු, Meta අනුමත template එකක් පමණක් පිළිගනී; ගෙවීම් තහවුරු කිරීම ගනුදෙනුකරුගේ මිලදී ගැනීම අනුගමනය කරන අතර, එය utility category එකට ගැලපෙයි, නමුත් සමාලෝචනයේදී Meta තීරණය කරයි. පණිවිඩය යෙදුමේ chat thread එකේ ද දිස්වන බැවින්, කණ්ඩායම order එක ගෙවා ඇති බව දකී.
// send_endpoint and access_token come from get_api_credentials for this number.
const insideWindow = Date.now() - lastCustomerMessageAt(waId) < 24 * 3600 * 1000;
await fetch(SEND_ENDPOINT, {
method: "POST",
headers: { Authorization: "Bearer " + ACCESS_TOKEN, "Content-Type": "application/json" },
body: JSON.stringify(insideWindow
? { messaging_product: "whatsapp", to: waId, type: "text",
text: { body: "Payment received for order " + orderId + ". Thank you! We will let you know when it ships." } }
: { messaging_product: "whatsapp", to: waId, type: "template",
template: { name: "payment_received", language: { code: "en" },
components: [{ type: "body", parameters: [{ type: "text", text: orderId }] }] } }),
});Template එකට ගෙවීම් බොත්තම ඇතුළත් කළ හැකිද?
ඔව්, ස්ථිර URL එකක් සමග. Send a template step එකට, බොත්තම් වල variable නොමැති අනුමත template එකක් යැවිය හැක: ඔබේ checkout පිටුවට හෝ ස්ථිර Payment Link එකට URL බොත්තමක්, හෝ Pay now සහ Talk to us වැනි quick-reply බොත්තම්, ඒවායේ tap කිරීම් text ලෙස පැමිණෙන අතර keyword automation එකකට link එක සමග පිළිතුරු දිය හැක. Body variables ස්ථානය අනුව පුරවයි, එබැවින් මුදල හෝ order අංකය {{1}} සහ {{2}} හි යයි.
Variable සහිත URL බොත්තමක්, එක් order එකකට link එකකට අවශ්ය ආකාරයට, සහ copy-code බොත්තම් අද automations මගින් පිරවිය නොහැක; ඔබේ system ඒ templates Cloud API හරහා යවයි. Meta template පණිවිඩ වලට පණිවිඩයකට, කාණ්ඩය සහ රට අනුව, ඔබේම WhatsApp Business Account වෙත බිල් කරයි.
එය සකසන ආකාරය
- Create the link at your providerMake a Payment Link or a checkout page for the product, or note your PIX key. Open it once on a phone to check the amount and the page.
- Start a keyword automationIn Automations, click New automation and pick Keyword reply under Start from an example. Choose Contains and enter your payment words, one per line.
- Write the replyIn Reply with text, put a short greeting with {{first_name}} and the link on its own line. Save with the switch Off.
- Test the wordsClick Test and run "how do I pay?", "quero pagar" and an unrelated message with Run test, to see which ones match and what the customer would receive.
- Switch it OnSet the switch to On and save. Write "pay" from another phone and tap the link to check it opens the payment page.
සාමාන්ය වැරදි
- Chat එකේ AI මගින් card විස්තර එකතු කිරීම. Instructions වලට card අංක, PIN සහ කේත තහනම් කරන රේඛාවක් එක් කර, ඒ වෙනුවට provider ගේ link එක යවන්න; chat පණිවිඩ run log වල දින 30ක් තබා ගනු ලැබේ.
- කල් ඉකුත් වන session link එකක් යැවීම. Stripe Checkout Session පෙරනිමියෙන් පැය 24ක් පවතින බැවින්, ඊළඟ දිනයේ ආපසු එන ගනුදෙනුකරු මිය ගිය link එකක් tap කරයි; ඉල්ලීමක් මත නව එකක් සාදන්න.
- දින ගණනාවකට පසු free text මගින් ගෙවීම තහවුරු කිරීම. ගනුදෙනුකරුගේ අවසාන පණිවිඩයෙන් පැය 24ක් ඉක්මවූ පසු Meta free-form text ප්රතික්ෂේප කරයි, එබැවින් තහවුරු කිරීම් සඳහා අනුමත utility template එකක් තබා ගන්න.
- Link එක ආපසු දෙන webhook එකට පසුව ස්ථිර reply එකක් එක් කිරීම. දෙකම යවන බැවින්, ගනුදෙනුකරුට link එක සහ දෙවන, සාමාන්ය පණිවිඩයක් ලැබේ.
එය මුදල් ස්පර්ශ නොකරයි: ගනුදෙනුකරුවන් ඔබේ provider වෙත කෙලින්ම ගෙවන අතර, Meta පණිවිඩ ඔබේම ගිණුමට markup නොමැතිව බිල් කරයි. අංකයකට මාසිකව US$ 9 සිට US$ 0.75 දක්වා, අංක එකතු කරන විට අඩු වේ, පළමු දින 3 නොමිලේ trial කාලය සමග.
නිතර අසන ප්රශ්න
easyCoexistence ගෙවීම් සකසනවාද?
නැත. එය link අඩංගු text හෝ template යවයි, ගෙවීම ගනුදෙනුකරු සහ ඔබේ provider අතර සිදුවේ, උදාහරණයක් ලෙස Stripe, Mercado Pago හෝ ඔබේ බැංකුවේ PIX. ගාස්තු, ගෙවීම් ලැබීම්, ආපසු ගෙවීම් සහ රිසිට්පත් ඔබේ provider ගේ dashboard එකේ පවතී.
ගනුදෙනුකරුවන්ට chat එකෙන් පිටව නොගොස් ගෙවිය හැකිද?
Automations හරහා නොවේ, ඒවා text සහ templates යවන බැවින්, ගනුදෙනුකරු provider ගේ පිටුව විවෘත කරයි. Meta ගේ තමන්ගේම chat ගෙවීම් පණිවිඩ සමහර වෙළඳපොළවල් වල පමණක් ඇති අතර ව්යාපාරයේ system මගින් Cloud API හරහා යවයි; ඔබේ රට සඳහා Meta ගේ payments documentation පරීක්ෂා කරන්න.
ගෙවීම කුමන chat එකට අයත්ද යන්න මගේ system දන්නේ කෙසේද?
Link සෑදීමේදී contact.wa_id සහ order id link එකේ metadata තුළ තබන්න. Provider ගෙවීම වාර්තා කළ විට, order යාවත්කාලීන කිරීමට සහ තහවුරු කිරීම නිවැරදි අංකයට යැවීමට ඒවා නැවත කියවන්න.
දින ගණනාවක් ලිපියක් නොදුන් අයට ගෙවීම් මතක් කිරීමක් යැවිය හැකිද?
ඔව්, ඔබේ system හෝ ඔබේ AI විසින් send_template සමග යවන අනුමත template එකක් ලෙස, ගනුදෙනුකරුගේ අවසාන පණිවිඩයෙන් පැය 24ක් ඉක්මවූ පසු free text ප්රතික්ෂේප වන බැවින්. මතක් කිරීම් ලබා ගැනීමට එකඟ වූ ගනුදෙනුකරුවන්ට පමණක් යවන්න, සහ utility template එකෙන් ප්රවර්ධන ඉවත් තබන්න.
තවදුරටත් කියවන්න
ආරම්භ කිරීමට සූදානම්ද?
WhatsApp Coexistence මිනිත්තු කිහිපයකින් සකසන්න, මාස ගණනකින් නොව. යෙදුම දුරකථනයේ දිගටම ක්රියා කරයි.
නොමිලේ trial කාලය ආරම්භ කරන්නසත්යාපනය කළේ