Skip to content

TheBumpaster/pikpay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pikpay

To use the package first grab your credentials from your PikPay account. You will need your Authenticity Token (API_KEY) and Key (SECRET_KEY). Before any request, an instance of Gateway has to be constructed.

var connection = new Gateway('yourendpoint', 'yourapikey', 'yoursecretkey');

var data = {
    'amount':   50,
    'expiration-date':    2102,
    'cvv':    553,
    'pan':    546400000587798528,
    'ip':   '128.93.108.112',
    'order-info':   'The Best Order',
    'ch-address':   'Mejdan bb',
    'ch-city':    'Bosanski Petrovac',
    'ch-country':   'Bosnia and Herzegovina',
    'ch-email':   '[email protected]',
    'ch-full-name':   'Ismar Hadzic',
    'ch-phone':   '38762591077',
    'ch-zip':   '77250',
    'currency':   'BAM', //EUR, BAM, HRK
    'order-number':   'order-123a',
    'language':   'en',
};

if ( connection.authorize(data) ) {
   // Do something on success
} else {
  // Return some error
}

connection.authorize(data);
connection.capture(data);
connection.purchase(data);
connection.refund(data);
connection.void(data);

Thanks to Selim Salihovic for providing PHP library, check it here: https://github.com/SelimSalihovic/pikpay-php

About

JavaScript Library for processing pikpay requests

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published