Hey! These docs are for version 1.0, which is no longer officially supported. Click here for the latest version, 5.0!


In order to setup PayLike.IO with Upodi you have to:

  1. Retrieve an APPKEY from the PayLike.IO account you want to use.
  1. Run a test payment on the same PayLike.IO account. We suggest you use the test card number 4100 0000 0000 and a valid expiration date.
  2. Click the successful test payment to retrieve the merchant ID from here.
  1. Navigate to Upodi and select Setup > Payment Providers > PayLike.IO. Provide the MerchantID and APPKEY from above to setup the payment provider.

Now the Payment Provider has been set up and you can start using Upodi with Paylike.io card tokens using the PayLike.IO SDK or API.

Read how to create a card token using PayLike.IO. See code sample here.

var paylike = Paylike('{your public key}', { style: false });
var $form = document.querySelector('form#checkout');
$form.addEventListener('submit', function( e ){

    paylike.tokenize($form, { }, 
        function( err, r ){
            if (err) {
        } else {
            var tokenizedCard = r.card.id;
            // example: 5ad5beb225735a2a38d6170e
            // call upodi API with tokenizedCard...            

Upodi Payment

To create a payment method for PayLike.IO token, make a POST request to /paymentmethods/:customerid/ with a body using the createpaymentmethod request object:

  "type" : 64 /* PureTokenBased = 64 */,
  "makedefault" : "true", /* will make the payment method default */
  "puretoken" : { 
    "token" : "5ad5beb225735a2a38d6170e", /* Paylike.IO card token */
    "paymentgateway" : "paylike"