@aigens/aigens-sdk-googlepay
v0.5.0
Published
aigens-sdk-googlepay
Downloads
171
Readme
@aigens/aigens-sdk-googlepay
aigens-sdk-googlepay
Install
npm install @aigens/aigens-sdk-googlepay
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: Promise<{ value: string; }>
checkNativeGooglePay(...)
checkNativeGooglePay(options: { allowedPaymentMethods: any[]; ENVIRONMENT_PRODUCTION?: boolean; }) => Promise<{ result: boolean; }>
| Param | Type |
| ------------- | -------------------------------------------------------------------------------- |
| options
| { allowedPaymentMethods: any[]; ENVIRONMENT_PRODUCTION?: boolean; } |
Returns: Promise<{ result: boolean; }>
makePaymentRequest(...)
makePaymentRequest(options: GooglePayMakeOption) => Promise<GooglePlayResponse>
| Param | Type |
| ------------- | ------------------------------------------------------------------- |
| options
| GooglePayMakeOption |
Returns: Promise<GooglePlayResponse>
Interfaces
GooglePlayResponse
| Prop | Type |
| ---------------------- | ------------------------------- |
| tokenizationData
| { token: string; } |
GooglePayMakeOption
| Prop | Type |
| --------------------------- | ------------------------------------- |
| total
| number |
| merchantId
| string |
| gateway
| string |
| currency
| string |
| allowedPaymentMethods
| GooglePayPaymentMethod[] |
GooglePayPaymentMethod
| Prop | Type |
| ------------------------------- | ------------------------------------------------------------------------------------------- |
| type
| string |
| parameters
| { allowedAuthMethods: any[]; allowedCardNetworks: any[]; } |
| tokenizationSpecification
| { type: string; parameters: { gateway: string; gatewayMerchantId: string; }; } |