온라인 결제 받기

첫 테스트 결제부터 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.