This repository is no longer used by any merchant. At the moment we don't support checkoutAPI-spike flow for any checkout merchants. As a matter of fact, it was created as a spike repo.
An experimental project
npm install @payoneer/checkout-api
import { CheckoutAPI } from "@payoneer/checkout-api"
or
const CheckoutAPI = require("@payoneer/checkout-api");
const config = {
env: "test"
listId: <LIST ID HERE>
};
const checkout = PayoneerCheckout(config);
checkout.update({ listId: <NEW LIST ID> });
checkout.updateListId(listId);
dropIn(componentName, options);
update(options)
reload();
destroy();
// Helpers
availableNetworks();
neededDropInComponents();
const cards = checkout.dropIn("cards", options).mount(document.querySelector("#app"));
mount(node);
unmount();
reload();
update(options);
pay();
<script src="path-to-checkout/checkout-api.js" type="text/javascript"></script>
Note: Payoneer
object is exposed in global window scope.
var checkout = Payoneer.CheckoutAPI(config);