Ecommerce Payment Types

Follow

Agility Ecommerce allows customers to store their card information in vaults of supported payment providers for easier checkout in future visits. Currently this functionality is supported with Stripe, Moneris, E-xact and Paypal integrations. It follows the same architecture in terms of transit of card information, hosted tokenization, which means Agility Ecommerce never receives or stores card information of customers.

Following actions are supported by Agility.Ecommerce.API.js:

Create Payment Type via Code

Agility.Ecommerce.API.PaymentTypes.Insert(
{
providerTypeReferenceName: 'payment provider reference name',
token: 'token received from supported payment provider',
name: 'name of the card i.e. Card ending with 9999',
description: 'any additional description that the customer would like to provide'
},
function (resp) {
//success callback
},
function (err) {
//error callback
},
function () {
//always callback
}
);

Delete Payment Type via Code

Agility.Ecommerce.API.PaymentTypes.Delete('token to delete',
function (resp) {
//success callback
},
function (err) {
//error callback
},
function () {
//always callback
}
);

List Payment Types via Code

Agility.Ecommerce.API.PaymentTypes.List('payment provider reference name',
function (resp) {
//success callback
},
function (err) {
//error callback
},
function () {
//always callback
}
);

Set Default Payment Type via Code

Agility.Ecommerce.API.PaymentTypes.SetDefaultPaymentType('token to set as default payment type',
function (resp) {
//success callback
},
function (err) {
//error callback
},
function () {
//always callback
}
);
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.