#aadit

1 messages · Page 1 of 1 (latest)

brisk coveBOT
strange bridge
#

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

fluid jungle
#

how can I access this test UI?

strange bridge
#

Collect a payment in Test mode using Affirm

fluid jungle
#

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?

strange bridge
#

You use your Test API keys and complete the purchase. Or do you mean actually interfacing with Affirm?

fluid jungle
#

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

strange bridge
#

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

fluid jungle
#

is there a similar way to simulate affirm approval/declines as there is the stripe test cards?

strange bridge
#

Yes.

#

Use the Payment Element and attempt to confirm a Payment Intent using Affirm

#

In Test Mode

fluid jungle
#

so are these the only errors I can test for?