VivaPayments / mobile-android-cardterminal-interapp-sample

Inter-App communication sample for Viva Wallet Card Terminal Android app
https://developer.vivawallet.com
3 stars 2 forks source link

Transaction refused after inserting the pin code #7

Open iwkse opened 8 months ago

iwkse commented 8 months ago

Hi, we're integrating to viva wallet but in last step we get an error message like: Transaction refused (transaction failed) with no info about the reason. That's the source part we're using, from the API docs:

intent payIntent = new Intent(Intent.ACTION_VIEW, Uri.parse( 
                                 "vivapayclient://pay/v1"
                                         + "?appid=it.ctl.viva_demo"
                                         + "&action=sale"
                                         + "&clientTransactionId=1234567801234"
                                         + "&amount=120"
                                         + "&tipAmount=20"
                                         + "&show_receipt=true"
                                         + "&show_transaction_result=true"
                                         + "&show_rating=true"
                                         + "&ISV_amount=10"
                                         + "&ISV_clientId=xxx.apps.vivapayments.com"
                                         + "&ISV_clientSecret=xxx"
                                         + "&ISV_sourceCode=default"
                                         + "&ISV_currencyCode=978"
                                         + "&ISV_customerTrns=ItemDescription"
                                         + "&ISV_ClientTransactionId=12345678901234567890123456789012"
                                         + "&ISV_merchantId=xxx"
                                         + "&ISV_merchantSourceCode=xxx"
                                         + "&paymentMethod=CardPresent"
                                         + "&callback=mycallbackscheme://result"));
payIntent.setFlags(intent.FLAG_ACTIVITY_NEW_TASK);
payIntent.addFlags(intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
MainActivity.startActivity(payIntent);

Any hints?

flombardi75 commented 7 months ago

Same problem here, with pay intent, vivawallet testing app is open, ask me for a card pin but no card is working, always get "transaction refused". Smoeone has solve it?