@plentymarkets/shop-api / doHandleAllowPaymentGooglePay
Function: doHandleAllowPaymentGooglePay() ​
doHandleAllowPaymentGooglePay(
context
,params
):Promise
<Data
<PayPalAllowGooglePayResponse
>>
Method doHandleAllowPaymentGooglePay - Used to allow payment for Google Pay.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: PayPalGooglePayPaymentMethods
PayPalGooglePayPaymentMethods
Returns ​
Promise
<Data
<PayPalAllowGooglePayResponse
>>
Remarks ​
- Calls /rest/payment/payPal/googlePay/handle_allowed_payment_methods
- Used to update the availability for Google Pay.
Example ​
ts
const { data } = await useSdk().plentysystems.doHandleAllowPaymentGooglePay({
allowedPaymentMethods: []
});