paypal / paypal-here-sdk-ios-distribution

Add credit card (tap, insert, swipe & key-in) capabilities to your iOS app
Other
81 stars 91 forks source link

SDK error after completing transaction #373

Open asa47 opened 2 years ago

asa47 commented 2 years ago

Hello,

We have updated the SDK to v2.4.0021224000, everything is working correctly but we are getting the following error after completing the transactions:

invoice.resetFlags is not a function. (in invoice.resetFlags()', 'invoice.resetFlags' is undefined)

The error message comes from context setCompletedHandler: PPRetailError

[context setCompletedHandler:^(PPRetailError *error, PPRetailTransactionRecord *txnRecord)
  if(error){
    // error.message > `invoice.resetFlags is not a function. (in invoice.resetFlags()', 'invoice.resetFlags' is undefined)`
  }
}

Are we missing something? Or do we need to enable something on our account?

Thanks!

asa47 commented 2 years ago

We have identified the issue, we have to change the way the invoice is initialized from PPRetailInvoice to PPRetailRetailInvoice.

I will close the issue, but do you know of any breaking changes that we should be aware of?

Thanks!

EarthyOrange commented 2 years ago

Hello @asa47

Please make sure that the transactions which are submitted to PayPal with a signature go through successfully.

asa47 commented 2 years ago

@EarthyOrange Thanks for the advice, and do you know how we can trigger the signature verification?

EarthyOrange commented 2 years ago

It is done by the PayPal backend automatically. It can't be skipped or forced by the SDK itself.