استلام المدفوعات عبر الإنترنت

من أول دفعة تجريبية إلى عملية دفع فعلية بالبطاقة مع 3-D Secure الإلزامية.

غير متاح بعد — النطاق api.baynoy.com لا يُترجَم، لذا لن تعمل الأمثلة أدناه اليوم. إنها تصف العقد الذي نبنيه، وقد تتغيّر البنى المذكورة في هذه الصفحة.

1 — Create a payment

Create a payment intent with amount, currency and your order reference. You receive a client secret that the hosted payment page consumes.

Node
const baynoy = require("@baynoy/sdk")("bk_test_...");

const link = await baynoy.paymentLinks.create({
  amount: 4900, // integer minor units — never floats
  currency: "EUR",
  title: "Design retainer",
});

2 — Let the customer pay

Card fields are hosted and PCI-certified; 3-D Secure runs on every card payment. Apple Pay and Google Pay appear automatically where supported.

3 — Trust the webhook, not the redirect

The redirect tells the customer what happened; the signed webhook tells your system. Fulfil on payment.succeeded only.