Sending addtional information aout payment to API Session

lietuvonis1
New Community Member

Hi all

Im using laravel and Paypal rest-api-sdk-php

I'm trying to include more information about my payment order so I have data populated correctly in activity reports.

This is my functions data

$transactionDescription = 'File tuning - Credits: ' . $credits . ', Price: ' . $price_taxed . ', Country: ' . auth()->user()->country . ', VAT ID: ' . auth()->user()->vat . ', VAT Rate: ' . $this->userVatPercentage;

So it passes it to paypal but in one field called SUBJECT in activity report, File tuning - Credits: 1.00, Price: 1.23, Country: PL, VAT ID: 1, VAT Rate: 23

How can I pass this information and separate them into different columns whcih are provided in activity report of paypal?

 

 

 

Login to Me Too
1 REPLY 1

lietuvonis1
New Community Member

{
"intent": "Sale",
"payer": {
"payment_method": "paypal"
},
"redirect_urls": {
"cancel_url": "https://tester.tuning-makarska.com/paypal/status/cancel?checkout_type=normal",
"return_url": "https://tester.tuning-makarska.com/paypal/status/success?checkout_type=normal"
},
"transactions": [
{
"amount": {
"currency": "EUR",
"total": "1"
},
"description": "File tuning, Credits: 1.00, Price: 1, Country: HR, VAT ID: , VAT Rate: 0",
"item_list": {
"items": [
{
"currency": "EUR",
"name": "1.00 CRD",
"price": "1",
"quantity": 1
}
]
}
}
]
}

 

 

this is what being sent to paypal

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.