@plentymarkets/shop-api / doHandlePayPalPaymentFundingSources
Function: doHandlePayPalPaymentFundingSources() ​
doHandlePayPalPaymentFundingSources(
context
,params
):Promise
<Data
<[]>>
Method doHandlePayPalPaymentFundingSources - Used to update the availability for PayPal APMs.
Parameters ​
• context: PlentysystemsIntegrationContext
• params: PayPalAllowAPMsRequest
PayPalAllowApplePayRequest
Returns ​
Promise
<Data
<[]>>
Remarks ​
- Calls /rest/payment/payPal/smart_payment/handle_founding_sources
- Used to update the availability for PayPal APMs.
Example ​
ts
const { data } = await useSdk().plentysystems.doHandlePayPalPaymentFoundingSources({
availableFoundingSources: Object.fromEntries(availableFoundingSources),
});