Sending addtional information aout payment to API Session
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
{
"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

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Sandbox payment for subscription returns "Unhandled api error" in Sandbox Environment
- Android Braintree SDK: PayPal Validation Failed|2073 : VALIDATION_ERROR| in SDKs
- paypal post back url - something wrong in PayPal Reporting
- Updating row value from one table into another in MySQL database without success in Sandbox Environment