- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm implementing the new Smart Buttons on my project and I recently notice that it seems we do not have "Credits" concept anymore, I mean, when I'm creating an Order I'm able to specify the amount, discount, taxes, insurance but I cannot see an option to "Credits". The previous version of PayPal EC allowed me to do that and it shows correctly on checkout page as "Credits applied: $ <amount>".
For the purpose of this thread I'm referring for Credits as the merchant credits given for users to be used on their purchasers.
Note: I cannot use "Credits" as an item of my cart considering the API does not accept negative values.
Reference: https://developer.paypal.com/docs/api/orders/v2/#definition-amount_breakdown
Solved! Go to Solution.
- Labels:
-
REST SDK
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It sounds like the variables you're looking for are the Discount Object. You can find that object in the link you attached. The discount object doesn't support negative values, however if you have the price of an item set at 100.00 and the discount set as 5.00, the total should come out to 95.00 (even though that discount amount variable is a positive value).
That should be the resolution you're looking for where you can "credit" a total amount. It just looks a little different from the "credit" option in Express Checkout.
Hope that helps!
-Aaron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It sounds like the variables you're looking for are the Discount Object. You can find that object in the link you attached. The discount object doesn't support negative values, however if you have the price of an item set at 100.00 and the discount set as 5.00, the total should come out to 95.00 (even though that discount amount variable is a positive value).
That should be the resolution you're looking for where you can "credit" a total amount. It just looks a little different from the "credit" option in Express Checkout.
Hope that helps!
-Aaron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You're right, that's no exactly what I wanted to do but is exactly how things work, I mean, I planned to have a different line description for credits and coupons but considering we do not have that option I decided to do like, accumulate coupons and credits in discounts attribute and use de description one to break down the value of credits and coupons separately.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Upgrade to business account problems in PayPal Payments Standard
- Is PayPal going to fix the website buttons? in PayPal Payments Standard
- PayPal OneTouch/OneClick not possible anymore? in PayPal Payments Standard
- Customers are suddenly not redirected to Paypal anymore. Cryptic Error-Code that doesn't help. in PayPal Payments Standard
- The repository `sdk-core-php` was deleted and I can’t build my application anymore in SDKs