Closed rleiwang closed 8 years ago
I don't see anything wrong with the code immediately. Can you share a log of what the SDK is outputting in this case?
@mpavlinsky I found out this afternoon it is threading issue. I moved the code to TakePayment example and it worked there. I am using react native with this SDK, react native uses another thread to invoke SDK api, for some reason, the audio session thread can't notify the card swipe event unless this SDK invoked from main thread.
@mpavlinsky Thanks for reviewing the code. I am unable to login to PayPal sandbox env since yesterday's noon time. Only got it resolved this afternoon after waiting almost 30 mins on the phone for tech support. Do you have any suggestions how can I dev/test code with SDK w/o sandbox?
Is it working now? If you do a transaction and refund it, you should end up 100% whole, so that's one way to test in a pinch.
Closing - feel free to open a new issue if you encounter any further problems.
Can you help me to look at why I can't process second swipe. The first swipe would be fine, but the time time, the card swipe never come through.
Here are the steps. 1) initWithResponse
2) call chargeCard, swipe Card, follow the screen flow, processing and done
3) call chargeCard second time, swiper Card, nothing happens.
can someone give a pointer where I did wrong?