Core Flows

This is mandatory for all miniapps, this allows users to open the miniapp without any login requirements. You will receive gopay_account_id (user unique identifier) and authToken (authorization header for other GoPay BE API)

NameDescriptionMandatoryPrerequisite
FE SDK ScriptInitiate SDK ScriptM
Get Auth CodeUse this SDK to get auth code (Active GoPay User session)MSDKScript
Get Auth TokenUse this API to retrieve user's access token for authenticationMAuthCode
AuthCredentials

This is mandatory if you use payments on your miniapp, this allows users to do payments seamlessly inside GoPay App. The journey once user initiate payments, users will redirect to GoPay Payment review page and will redirect back to the miniapp after transactions.

NameDescriptionMandatoryPrerequisite
Get B2B Access TokenInitiate order with Super App Backend Merchant access token is needed for verification purposesOBi Snap Activation
IP Whitelisting
Initiate Host to Host PaymentCreate Payment Deeplink with Super App backendOB2BAccessToken
PointofPurchaseID
Launch Payment

Use this SDK to automatically redirect users to the GoPay app to complete the payment, then return them to your Mini App.

This is the FE Payment Response

OInitiate Host to Host Payment
Notify

Use this API to get transaction status.

This is the BE Payment Response.

O
RefundInitiating refund for GoPay and GoPay Tokenization (non Pre-Auth) transactionO

Note: Payments only works in production host, currently it will NOT work on sandbox host (it will only redirect to browser only)

Please ensure that seamless login is enabled globally, as we will add deeplink redirection from the user's order history for all transactions.