peach-pay

1.0.3 • Public • Published

Peach Pay

Gitter

Init

gateway = new peach(
{
    production: false,
    userId: {PEACH_USER_ID},
    password: {PEACH_PASSWORD},
    entityId: {PEACH_ENTITY_ID}
});

Use

  • Creating a card
gateway.card.create({
    'name': "John Smith",
    'paymentBrand': "VISA",
    'ccNumber': "xxxxxxxxxxxxxxxx",
    'cardExpMonth': "01",
    'ccExpYear': "2015",
    'ccCVV': "xxx"
})
  • Creating a transaction
gateway.transaction.create({
    paymentId: {CARD_ID},
    amount: 10
})
  • Refunding a transaction
gateway.transaction.refund({
    transactionId: {TRANSACTION_ID},
    amount: 10
})

Readme

Keywords

Package Sidebar

Install

npm i peach-pay

Weekly Downloads

1

Version

1.0.3

License

none

Last publish

Collaborators

  • nickchapleau
  • glesage
  • eahenke