3.1.0 • Published 2 years ago

ocpaycomet v3.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

#ocpaycomet

Ocpayment is a library to interact with paycomet.

Installation

Download

npm install ocpaycomet

Example

const ocPaycometClass = require('ocpaycomet')

const ocPaycomet = new ocPaycometClass.Ocpaycomet(
    {
        terminal: "",
        paycometApiToken: ""
    }
);

Usage

To create a new user

paycomet.addUser(tpvToken, "ca")
.then(function(response) {
    console.log(response);
})
.catch(function(error) {
    console.log(error);
});

To charge a payment

paycomet.charge(
    idUser,
    tokenUser,
    1000,
    'Test payment',
    true, // true if it's needed user interaction
    true // true if it's first payment
    {
        id: '1',
        name: 'John',
        surname: 'Doe',
        email: 'jdoe@omnium.cat',
        homePhone: '+34936666666',
        mobilePhone: '+34666666666'
    }
    'ca'
)
.then(function(response) {
    console.log(response);
})
.catch(function(error) {
    console.log(error);
});

Documentation

Read documentation from ocpaycomet for further details.

3.1.0

2 years ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.6

2 years ago

3.0.0

2 years ago

2.0.13

2 years ago

2.0.14

2 years ago

2.0.12

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.11

2 years ago

2.0.7

2 years ago

2.0.6

2 years ago

2.0.10

2 years ago

2.0.8

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.6

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago