However if I just changed my access url from "paypalhere://takePayment" to "paypalhere://takePayment/v2?", then on the payment process on PayPal Here app, process the payment > "Payment Complete" > "No receipt" > tap the "You're all done" then the app crashes.
The PayPal Here app version is 2.6.2. No further log is logged in logcat.
If I add "number" with any unique value, the payment the transaction finishes and the process is back to my app on where I specified in returnUrl.
Working with v1 but crashes with v2
invoice : {"paymentTerms":"DueOnReceipt","discountPercent":"0","currencyCode":"AUD","merchantEmail":"xxx@xxxx.xxx","itemList":{"item":[{"name":"Goods","unitPrice":"15.0","quantity":"1"}]}}
Working both with v1 and v2
invoice : {"paymentTerms":"DueOnReceipt","discountPercent":"0","currencyCode":"AUD","merchantEmail":"xxx@xxxx.xxx","number":"999","itemList":{"item":[{"name":"Goods","unitPrice":"15.0","quantity":"1"}]}}
I'm currently migrating my app (android) to use v2 endpoint from v1. Looking following URL, the "number" field in the invoice is optional and it was working on v1 without it. https://developer.paypal.com/webapps/developer/docs/classic/api/invoicing/CreateInvoice_API_Operation/
However if I just changed my access url from "paypalhere://takePayment" to "paypalhere://takePayment/v2?", then on the payment process on PayPal Here app, process the payment > "Payment Complete" > "No receipt" > tap the "You're all done" then the app crashes. The PayPal Here app version is 2.6.2. No further log is logged in logcat.
If I add "number" with any unique value, the payment the transaction finishes and the process is back to my app on where I specified in returnUrl.
Working with v1 but crashes with v2 invoice : {"paymentTerms":"DueOnReceipt","discountPercent":"0","currencyCode":"AUD","merchantEmail":"xxx@xxxx.xxx","itemList":{"item":[{"name":"Goods","unitPrice":"15.0","quantity":"1"}]}}
Working both with v1 and v2 invoice : {"paymentTerms":"DueOnReceipt","discountPercent":"0","currencyCode":"AUD","merchantEmail":"xxx@xxxx.xxx","number":"999","itemList":{"item":[{"name":"Goods","unitPrice":"15.0","quantity":"1"}]}}