@plentymarkets/shop-api / setMobilePaymentProviderList
Function: setMobilePaymentProviderList() ​
setMobilePaymentProviderList(
context
,params
):Promise
<Data
<SetMobilePaymentProviderResponse
>>
Method setMobilePaymentProviderList - Used to update the payment provider list
Parameters ​
• context: PlentysystemsIntegrationContext
• params: SetMobilePaymentProviderListParams
mobilePayments: string[] = array with the mobile payments id's ex. ['PAYPAL_APPLE_PAY', 'PAYPAL_GOOGLE_PAY']
Returns ​
Promise
<Data
<SetMobilePaymentProviderResponse
>>
selected: string[] = the list of payments
Remarks ​
- Calls /rest/storefront/checkout/payment/mobile-providers
- This method is used to update the payment provider list for the checkout
Example ​
ts
const { data } = await useSdk().plentysystems.setMobilePaymentProviderList({mobilePayments: ['PAYPAL_APPLE_PAY', 'PAYPAL_GOOGLE_PAY']});