Skip to main content

Payments

After createPayment, send the shopper to gw_url. Treat notification and return callbacks as hints — always confirm status with getPayment on the server.
This page covers core payment creation and retrieval operations.

Create payment

Automatic defaults

If omitted, the SDK injects:
  • target: { type: 'ACCOUNT', goid: <configured-goid> }
  • lang: <configured-language>

Query payment details

Card details and card deletion

Embed.js helper

To embed GoPay UI assets with the same gateway environment:

Types used

From gopay-sdk exports:
  • CreatePaymentRequest
  • PaymentResponse
  • CardDetailsResponse
  • Currency, Language, PaymentInstrument, and other enums