@plentymarkets/shop-api / setPaymentProvider
Function: setPaymentProvider() ​
setPaymentProvider(
context
,params
):Promise
<Data
<SetPaymentProviderResponse
>>
Method setPaymentProvider - Used to set the payment provider
Parameters ​
• context: PlentysystemsIntegrationContext
• params: SetPaymentProviderParams
paymentId: number = id from the payment provider which should be set
Returns ​
Promise
<Data
<SetPaymentProviderResponse
>>
selected: number = id of the selected payment provider
Remarks ​
- Calls /rest/storefront/checkout/payment/
- This method is used to set the payment provider for the checkout
Example ​
ts
const { data } = await useSdk().plentysystems.setPaymentProvider({paymentId: 6001});