spree_braintree_vzero
spree_braintree_vzero copied to clipboard
Truncate Product Description and Name
Hi development team,
I am writing regarding some small issues I have encountered when integrating this gem onto Spree. When the product name or description is greater than 127 characters, the Braintree API would reject the transaction and the payment would instantly fail. Can I please request this Braintree v.zero gem to truncate the fields before sending the data to the API?
My team also discovered that the gem did not pass all details to PayPal, so when viewing the invoice, it appears incomplete. Please fix this issue too.
Thank you, I will be happy to provide more details and clarification if you have any.
Hi development team,
I am writing regarding some small issues I have encountered when integrating this gem onto Spree. When the product name or description is greater than 127 characters, the Braintree API would reject the transaction and the payment would instantly fail. Can I please request this Braintree v.zero gem to truncate the fields before sending the data to the API?
My team also discovered that the gem did not pass all details to PayPal, so when viewing the invoice, it appears incomplete. Please fix this issue too.
Thank you, I will be happy to provide more details and clarification if you have any.
Hi @victoria-lo
Thanks for pointing out the truncate issue, we'll take care of it 💪
Could you elaborate on the missing data sent to PP? Which fields are getting lost?
Hi @damianlegawiec
Thanks for the prompt response. The missing fields are: https://developer.paypal.com/braintree/docs/reference/request/transaction/sale/ruby#line_items.description https://developer.paypal.com/braintree/docs/reference/request/transaction/sale/ruby#options.paypal.description
We want to pass custom description in these fields to send in the email when a customer checks out with Braintree or PayPal.
Hi @damianlegawiec
Thanks for the prompt response. The missing fields are: https://developer.paypal.com/braintree/docs/reference/request/transaction/sale/ruby#line_items.description https://developer.paypal.com/braintree/docs/reference/request/transaction/sale/ruby#options.paypal.description
We want to pass custom description in these fields to send in the email when a customer checks out with Braintree or PayPal.
@damianlegawiec
FYI, My team are currently fixing many of the issues that we found with this gem in relation to submitting payments to PayPal via BrainTree. We will be submitting a patch to you guys shortly (next 1-2 days). Hopefully that will help and reduce the turnaround time on the fix.
In short we will address the following issues:
- Product name text limitation (truncate anything > 127 chars), including using double byte character sets
- Product description text limitation (truncate anything > 127 chars), including using double byte character sets
- Line items are not submitted as part of the sales order
- Delivery Fee not submitted as part of the sales order
- Promotions not submitted as part of the sales order
Items 3-5 have a flow on effect with the invoice issued by PayPal to the end customer. Currently with the line items missing, the invoice issued by PayPal does not contain the product names.
@damianlegawiec FYI we have submitted the patch. Let us know if you need more details.
@damianlegawiec FYI we have submitted the patch. Let us know if you need more details.
Thank you! Just merged it, we need to push out the release to RubyGems which will happen in a day or two
Awesome, thanks @damianlegawiec