collana pay JS Docs / ComputopGooglePayOptions
Type Alias: ComputopGooglePayOptions
ComputopGooglePayOptions =
Omit<GooglePayOptions,"gateway"|"billingAddressRequired"|"billingAddressParameters">
Defined in: types.ts:705
SDK-level options for the Computop Google Pay provider (Computop:GooglePay).
Remarks
Based on GooglePayOptions with the following fields removed because the Computop provider enforces them internally:
gateway— always'computop'billingAddressRequired— alwaystrue(Computop requires a full billing address)billingAddressParameters— always{ format: 'FULL', phoneNumberRequired: true }
Example
ts
const computopGooglePay: ProviderButtonConfig<'Computop:GooglePay'> = {
providerProtocolType: 'Computop',
paymentMethodType: 'GooglePay',
container: '#computop-googlepay-container',
style: { buttonColor: 'black', buttonType: 'buy' },
options: {
totalAmount: 19300,
currencyCode: 'USD',
countryCode: 'US',
gatewayMerchantId: 'mac_test',
merchantName: 'My Shop',
emailRequired: true,
},
};