@plentymarkets/shop-api / doCreatePayPalCreditCardTransaction
Function: doCreatePayPalCreditCardTransaction() ​
doCreatePayPalCreditCardTransaction(
context
):Promise
<Data
<PayPalCreditCardTransaction
>>
Method doCreatePayPalCreditCardTransaction - creates a PayPal credit card transaction.
Parameters ​
• context: PlentysystemsIntegrationContext
Returns ​
Promise
<Data
<PayPalCreditCardTransaction
>>
id: string = The ID of the PayPal credit card transaction. status: string = The status of the PayPal credit card transaction, e.g. CREATED links: PayPalLink[] = Links to the PayPal credit card transaction. payPalPayerId: string = The PayPal payer ID of the PayPal credit card transaction.
Remarks ​
- Calls /rest/payment/payPal/smart_payment/create_order
- This method creates a PayPal credit card transaction.
Example ​
ts
const { data } = await useSdk().plentysystems.doCreatePayPalCreditCardTransaction();