#aadit
1 messages · Page 1 of 1 (latest)
Hi 👋
We do not have a mechanism to test whether or not Affirm will approve/reject a loan
The test UI will allow you to manually trigger an approval or rejection so you can code your integration to respond appropriately
but we will not actually send any request to Affirm's network AFAIk
how can I access this test UI?
Collect a payment in Test mode using Affirm
I have Stripe integrated via Vue-stripe-js library and render Affirm as a payment option. how can I go through with Affirm as a payment option to test?
You use your Test API keys and complete the purchase. Or do you mean actually interfacing with Affirm?
Yeah I want to go through a test payment with Affirm and test for edge cases (i.e. Affirm approves/rejects)
because I need to be able to handle the case where Affirm declines a loan
You cannot directly interface with Affirm's UI in test mode. Those requests cost us money so we only do them on Live mode transactions. however, you should be able to hanlde the approve/decline based on the test UI
is there a similar way to simulate affirm approval/declines as there is the stripe test cards?
Yes.
Use the Payment Element and attempt to confirm a Payment Intent using Affirm
In Test Mode
so are these the only errors I can test for?