APIs Interface

PGW SDK Helper API Interface


Class PGWSDK
MethodsPlatformData TypeMandatoryDescription
instance/sharediOS / AndroidPGWSDKHelperMPGW SDK instance methods.
proceedDeepLinkPayment(request, response)iOS / AndroidPaymentProviderRequest, PaymentResultResponseCallbackOProceed deep link payment method.

Request: Refer to: Payment Provider Request

Response: Refer to: Deep Link Payment Result Response
universalPaymentResultObserver(url)iOSURLOObserver deep link payment url method.

Refer to: URL
supportGooglePayPayment(request, response)AndroidPaymentProviderRequest, PaymentResultResponseCallbackOVerify google pay availability method.

Request: Refer to: Payment Provider Request

Response: Refer to: Google Pay Payment Result Response
supportGooglePayPayment(googlePayAPIEnvironment, request, response)AndroidInteger, PaymentProviderRequest, PaymentResultResponseCallbackOVerify google pay availability method.

googlePayAPIEnvironment: Refer to: API environment

Request: Refer to: Payment Provider Request

Response: Refer to: Google Pay Payment Result Response
proceedGooglePayPayment(request, response)AndroidPaymentProviderRequest, PaymentResultResponseCallbackOProceed google pay payment method.

Request: Refer to:Payment Provider Request

Response: Refer to: Google Pay Payment Result Response
proceedGooglePayPayment(googlePayAPIEnvironment, request, response)AndroidInteger, PaymentProviderRequest, PaymentResultResponseCallbackOProceed google pay payment method.

googlePayAPIEnvironment: Refer to: API environment

Request: Refer to: Payment Provider Request

Response: Refer to: Google Pay Payment Result Response
proceedApplePayPayment(request, response)iOSPaymentProviderRequest, PaymentResultResponseCallbackOProceed apple pay payment method.

Request: Refer to: Payment Provider Request

Response: Refer to: Apple Pay Payment Result Response
supportApplePayPayment(request, response)iOSPaymentProviderRequest, PaymentResultResponseCallbackOVerify apple pay availability method.

Request: Refer to: Payment Provider Request

Response: Refer to: Apple Pay Payment Result Response
proceedZaloPayPayment(request, response)iOS / AndroidPaymentProviderRequest, PaymentResultResponseCallbackOProceed ZaloPay payment method.

Request: Refer to: Payment Provider Request

Response: Refer to: Zalo Pay Payment Result Response
proceedZaloPayPayment(zaloPayAPIEnvironment, request, response)iOS / AndroidEnvironment, PaymentProviderRequest, PaymentResultResponseCallbackOProceed ZaloPay payment method.

zaloPayAPIEnvironment: Refer to: ZaloPay Wallet

Request: Refer to: Payment Provider Request

Response: Refer to: Zalo Pay Payment Result Response

Payment Provider Request


Class PaymentProviderRequest
ParameterPlatformData TypeMandatoryDescription
Constructors (activity)AndroidActivityMInit class constructor with Android activity.

• SDK constructor
• Refer to: Activity
uiViewControlleriOSUIViewControllerCiOS UI View controller.

Refer to: UI view controller
paymentProvideriOS / AndroidPaymentProviderCPayment provider info.

Refer to: Payment Provider
transactionResultResponseiOS / AndroidTransactionResultResponseCTransaction result info.

Refer to: Do Payment Response API
fxRateiOS / AndroidFXRateOExchange rate info.

Refer to: FX rate

Deep Link Payment Result Response


Class DeepLinkPaymentResultResponse
ParameterPlatformData TypeMandatoryDescription
paymentTokeniOS / AndroidStringMPayment token.
dataiOS / AndroidStringMPayment data information.
fallbackDataiOS / AndroidStringMPayment fallback data information.

• if user device doesn't installed specific native app, this fallback allow do payment with web payment.
intentAndroidIntentOPayment intent from deep link.

Refer to: Intent
responseCodeiOS / AndroidStringMAPI response code.

Refer to: Deep Link Payment Response Code
responseDescriptioniOS / AndroidStringMAPI response description.

Refer to: Deep Link Payment Response Code

Google Pay Payment Result Response


Class GooglePayPaymentResultResponse
ParameterPlatformData TypeMandatoryDescription
tokenAndroidStringMGoogle pay token.
fxRateIdAndroidStringOExchange rate id.
googlePayResultAndroidGooglePayResultMGoogle pay result data.

Refer to: Google Pay Result
responseCodeAndroidStringMAPI response code.

Refer to: Google Pay Payment Response Code
responseDescriptionAndroidStringMAPI response description.

Refer to: Google Pay Payment Response Code

Apple Pay Payment Result Response


Class ApplePayPaymentResultResponse
ParameterPlatformData TypeMandatoryDescription
tokeniOSStringMApple pay token.
fxRateIdiOSStringOExchange rate id.
responseCodeiOSStringMAPI response code.

Refer to: Apple Pay Payment Response Code
responseDescriptioniOSStringMAPI response description.

Refer to: Apple Pay Payment Response Code

ZaloPay Payment Result Response


Class ZaloPayPaymentResultResponse
ParameterPlatformData TypeMandatoryDescription
dataiOS / AndroidStringMPayment data information.
fallbackDataiOS / AndroidStringOPayment fallback data information.
resultiOS / AndroidZaloPayResultMZaloPay result data.

Refer to: ZaloPay Result
responseCodeiOS / AndroidStringMAPI response code.

Refer to: ZaloPay Payment Response Code
responseDescriptioniOS / AndroidStringMAPI response description.

Refer to: ZaloPay Payment Response Code