Payment Plugin
The Payment Plugin is an iframe, embeddable in your own site, that enables the user to sign-up or sign-in, apply for a spending limit, enter payment method(s), submit their First Payment, and sign the
Embed Inline Frame (iframe)
<script src="https://pp3.flexshopper.com/sdk/js?authKey=AUTH_KEY"></script>
<script>
FlexSDK.Button({
createOrder: function() {}
onSign: function() {}
}).render('#elementSelector');
</script>Create Transaction
FlexSDK.Button({
createOrder: function(data, actions) {
return actions.transaction.create({
cost: 120.34,
transactionId: "ABC-129384",
items: [
{
description: "Macbook Pro 13",
sku: "ABC123",
cost: 120.34,
brand: "Apple",
condition: "new",
quantity: 1,
images: [ // optional
"https://images.dog.ceo/breeds/husky/n02110185_11635.jpg"
],
shipping: {
cost: 10.33,
date: new Date(),
method: "UPS"
}
}
]
});
}
}).render('#elementSelector');Finalize Transaction
Client-side
Server-side
Confirm Order
Confirm ShipmentLast updated
Was this helpful?