question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Purchase with "Slow card, always denied" is never set as canceled and always fire purchaseUpdatedListener

See original GitHub issue

Version of react-native-iap

4.4.3

Version of react-native

0.62.2

Platforms you faced the error (IOS or Android or both?)

Android (only tested on it for now)

Expected behavior

For “slow card, always denied”, an update should be received in purchaseUpdatedListener or in purchaseUpdatedError when the payment has been canceled. Moreover, if I relaunch the app, the listener should not be fired or at least with the real status which should be “canceled” and not “pending”.

Actual behavior

When on testing environment, if I choose to pay with “slow card, always accepted”, I receive the event in purchaseUpdatedListener when the payment has been accepted. However, for “slow card, always denied”, there is no update receive in purchaseUpdatedListener when the payment has been canceled. Moreover, if I relaunch the app, the listener is fired with the same purchase and with the “pending status” whereas there is no reason to fire it because the purchase is now canceled and the status is not the good one.

Tested environment (Emulator? Real Device?)

Real device

Steps to reproduce the behavior

Make a payment with “slow card, always denied”. I am using non-consumables, I don’t know if it’s the same behaviour for suscriptions or consumables products.

Thanks for the lib !!!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
medonagy45commented, Jul 7, 2020

I am having the same issue , but with consumables

1reaction
neha737commented, Jul 7, 2021

Version of react-native-iap

4.4.3

Version of react-native

0.62.2

Platforms you faced the error (IOS or Android or both?)

Android (only tested on it for now)

Expected behavior

For “slow card, always denied”, an update should be received in purchaseUpdatedListener or in purchaseUpdatedError when the payment has been canceled. Moreover, if I relaunch the app, the listener should not be fired or at least with the real status which should be “canceled” and not “pending”.

Actual behavior

When on testing environment, if I choose to pay with “slow card, always accepted”, I receive the event in purchaseUpdatedListener when the payment has been accepted. However, for “slow card, always denied”, there is no update receive in purchaseUpdatedListener when the payment has been canceled. Moreover, if I relaunch the app, the listener is fired with the same purchase and with the “pending status” whereas there is no reason to fire it because the purchase is now canceled and the status is not the good one.

Tested environment (Emulator? Real Device?)

Real device

Steps to reproduce the behavior

Make a payment with “slow card, always denied”. I am using non-consumables, I don’t know if it’s the same behaviour for suscriptions or consumables products.

Thanks for the lib !!!

i have same issue, is there any solution?, how to handel “Slow card, always denied”?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Android BillingClient v2 slow credit card test never ...
It works fine with "Credit card approves after a few minutes", but with "Slow credit card, rejects after a few minutes" the purchase...
Read more >
Test your Google Play Billing Library integration
Test a purchase with a declined slow test card. Make a purchase with a delayed form of payment "Slow test card, approves after...
Read more >
dooboolab/react-native-iap (Raised $40.00) - Issuehunt
Purchase with "Slow card, always denied" is never set as canceled and always fire purchaseUpdatedListener. Unfunded#1012created byrobinalexandre.
Read more >
Test in-app billing with application licensing - Play Console Help
When making a purchase from a license test user, you will see two choices for payment method: “Test card, always approves”; “Test card,...
Read more >
Unable to Test Google Play Slow Card Payments - Unity Forum
We have been receiving issues with customers who have been making purchases on GooglePlay. Having investigated this we believe that this is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found