This documentation is for the Affirm Payment Gateway found on the WooCommerce.com marketplace.

You must have the latest version of the Robot Ninja Helper plugin which tells Robot Ninja what affirm settings have been set in WooCommerce > Settings > Payments.

Supported Features 

Real Payments
Live/Test Mode
Test Order Creation
Order Received Page Displayed (test mode only)
✅ Affirm Modal & Redirect off-site to Affirm

Testing in Live Mode

The Affirm payment gateway is a payment gateway that requires you to sign into an existing Affirm account using your mobile number and then to enter in a PIN which is sent via SMS to complete the login step.

Once you have logged into Affirm, you are then asked to select one of the available payment plans for your order (e.g. total order amount over 6 months).

Because this payment gateway requires a real mobile number and PIN to be sent, Robot Ninja cannot test any real payments with Affirm.

When the payment gateway is in Live Mode, Robot Ninja will continue to test:

  • filling in the checkout billing form,
  • checking the Affirm payment gateway option is available and loaded on the checkout
  • click the "Continue to Affirm" button on the checkout
  • the customer was redirected to Affirm or the correct Affirm payment modal was loaded (depending on your stores payment gateway settings)

If the site is in Sandbox mode, we complete the Affirm payment (see below).

Testing in Sandbox Mode

Affirm has great Sandbox Mode support which allows Robot Ninja to use any Mobile Number and any PIN number to complete the sign in step. This allows Robot Ninja to fully test the Affirm Payment Gateway when it is in Sandbox mode.

When the payment gateway is in Sandbox Mode, Robot Ninja will test:

  • filling in the checkout billing form,
  • checking the Affirm payment gateway option is available and loaded on the checkout
  • click the "Continue to Affirm" button on the checkout
  • the customer was redirected to Affirm or the correct Affirm payment modal was loaded (depending on your stores payment gateway settings)
  • the Affirm login can be completed by filling a mobile number and PIN
  • the customer can choose a payment plan and complete the payment
  • confirm the customer was redirected back to your store and landed on the Order Received page.

Did this answer your question?