@plentymarkets/shop-api / getPayPalApplePayTransactionInfo
Function: getPayPalApplePayTransactionInfo() ​
getPayPalApplePayTransactionInfo(
context,params):Promise<Data<PayPalApplePayTransactionInfo>>
Defined in: api/paypalModule/getPayPalApplePayTransactionInfo/index.ts:22
Method getPayPalApplePayTransactionInfo - Used to get the Google Pay transaction information for PayPal.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
Returns ​
Promise<Data<PayPalApplePayTransactionInfo>>
Remarks ​
- Calls /rest/paypal/applePay/getData/basket OR /rest/paypal/applePay/getData/order/:orderId
- Method should be used to get the Google Pay transaction information for the current basket/provided order.
Example ​
ts
const { data } = await useSdk().plentysystems.getPayPalApplePayTransactionInfo();