@plentymarkets/shop-api / getPayPalGooglePayTransactionInfo
Function: getPayPalGooglePayTransactionInfo() ​
getPayPalGooglePayTransactionInfo(
context
,params
):Promise
<Data
<PayPalGooglePayTransactionInfo
>>
Defined in: api/paypalModule/getPayPalGooglePayTransactionInfo/index.ts:22
Method getPayPalGooglePayTransactionInfo - Used to get the Google Pay transaction information for PayPal.
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
Returns ​
Promise
<Data
<PayPalGooglePayTransactionInfo
>>
Remarks ​
- Calls /rest/paypal/googlePay/getData/basket OR /rest/paypal/googlePay/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.getPayPalGooglePayTransactionInfo();