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 Payment Provider Request
response: refer Deep Link Payment Result Response
universalPaymentResultObserver(url)iOSURLOObserver deep link payment url method.

url: refer URL
supportGooglePayPayment(request, response)AndroidPaymentProviderRequest, PaymentResultResponseCallbackOVerify google pay availability method.

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

googlePayAPIEnvironment: refer API environment

request: refer Payment Provider Request
response: refer Google Pay Payment Result Response
proceedGooglePayPayment(request, response)AndroidPaymentProviderRequest, PaymentResultResponseCallbackOProceed google pay payment method.

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

googlePayAPIEnvironment: refer API environment

request: refer Payment Provider Request
response: refer Google Pay Payment Result Response
proceedApplePayPayment(request, response)iOSPaymentProviderRequest, PaymentResultResponseCallbackOProceed apple pay payment method.

request: refer Payment Provider Request
response: refer Apple Pay Payment Result Response
supportApplePayPayment(request, response)iOSPaymentProviderRequest, PaymentResultResponseCallbackOVerify apple pay availability method.

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

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

zaloPayAPIEnvironment: refer zalo pay guide
request: refer Payment Provider Request
response: refer Zalo Pay Payment Result Response

Payment Provider Request


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

SDK constructor
activity: refer app activity
uiViewControlleriOSUIViewControllerCiOS UI View controller.

uiViewController: refer UI view controller
paymentProvideriOS / AndroidPaymentProviderCPayment provider info.

Refer Payment Provider
transactionResultResponseiOS / AndroidTransactionResultResponseCTransaction result info.

Refer Do Payment Response API
fxRateiOS / AndroidFXRateOExchange rate info.

Refer FX rate

Deep Link Payment Result Response


Class DeepLinkPaymentResultResponse
ParameterPlatformData TypeMandatoryDescription
paymentTokeniOS / AndroidStringMPayment token.
dataiOS / AndroidStringMPayment data information.
fallbackDataiOS / AndroidStringMPayment fallback data information.
intentAndroidIntentOPayment intent from deep link.
responseCodeiOS / AndroidStringMAPI response code.
responseDescriptioniOS / AndroidStringMAPI response description.

Google Pay Payment Result Response


Class GooglePayPaymentResultResponse
ParameterPlatformData TypeMandatoryDescription
tokenAndroidStringMGoogle pay token.
fxRateIdAndroidStringOExchange rate id.
googlePayResultAndroidGooglePayResultMGoogle pay result data.
responseCodeAndroidStringMAPI response code.
responseDescriptionAndroidStringMAPI response description.

Apple Pay Payment Result Response


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

ZaloPay Payment Result Response


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

Refer: ZaloPay Result
responseCodeiOS / AndroidStringMAPI response code.

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

Refer: ZaloPay Payment Response Code