The FlexPay Payment Platform is a simple way to enable your users who may not otherwise qualify for financing to securely finance their order through our easy Lease to Own experience.
Version 1 of the Payment Method is deprecated and will be shut off July 2020. If you're still on V1, please contact our integration team for assistance on migrating to V3.
How do you know if you're on V1?
Check the domain you're directed to at check, if it's sdk.flexshopper.com, you're on V1.
Make sure to replace AUTH_KEY with your organization's assigned authorization key.
Creating a transaction
To create a lease, the createOrder method must be implemented. It will be called when the customer clicks on the FlexPay Payments button; once called, createOrder:
Makes use of actions.transaction.create() to create a valid order. A complete list of options can be found here.
Launches the FlexShopper Payment modal where the customer may apply, get a spending limit, and sign the lease for their cart. Upon receiving a spending limit, customers are also given the chance to return to the store and add more items to their cart.
Once the consumer has signed their lease, the onSign method will be called. In this method you are required to:
Retrieve the order from FlexShopper's system and validate the signed agreement.
Finalize the order, confirming the lease's total value and items, as well as confirming that the shipping process is underway.
If these steps are not followed, orders may not be fulfilled or billed correctly. You will have to implement an endpoint that your customers can interact with that consumes our Backend API:
Once FlexShopper receives confirmation that the consumer has received their item (delivery confirmation), your organization will be paid for the value of the lease. Use the Confirm Shipment API endpoint to inform FlexShopper of the shipment's status: