PayLike.io

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. Retrieve the Merchant ID.
The merchant ID is the one in the red box on this picture.The merchant ID is the one in the red box on this picture.

The merchant ID is the one in the red box on this picture.

  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.

/* For this code to work, you need to have declared an html form that takes test creditcard information.

See our full example including the html form here:
https://github.com/Upodi/

You can use paylike's test-card https://paylike.io/integration/sandbox as input to the form.
*/

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

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

SCA and Paylike.io

With the new PSD2 requirements from 14th of September going forward we suggest you make use of 3D Secure in the signup of your customers. If you use the Paylike payment window pop-up or one of the many Paylike plugins you have 3D secure enabled automatically for all card acquirers that support it.

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"
  }
}