I am using PayPalMobileSDK
for Single Payment Processing.
When ever i use the intent of payment to Sale it works perfectly, but when i change the intent to Authorize
I am using the sample-Swift code provided with SDK and testing in Sandbox Environment
.
Code with Sale intent
let payment = PayPalPayment(amount: total, currencyCode: "USD", shortDescription: "Hipster Clothing", intent: .sale)
payment.items = items
payment.paymentDetails = paymentDetails
Code with Authorize intent
let payment = PayPalPayment(amount: total, currencyCode: "USD", shortDescription: "Hipster Clothing", intent: .authorize)
payment.items = items
payment.paymentDetails = paymentDetails