omise / omise-node

Omise Node.js Library
https://docs.opn.ooo
101 stars 52 forks source link

Support expire a charge #132

Closed keeratita closed 4 years ago

keeratita commented 4 years ago

1. Objective

Add support of account API

2. Description of change

3. Quality assurance

Expire a charge

const omise = require('omise')({
    publicKey: 'pkey_test_XXXXXX',
    secretKey: 'skey_test_XXXXXX',
    omiseVersion: '2019-05-29'
  });
 omise.charge.expire(charge_id, function(err, charge) {
    console.log(charge.expired); // should be true
  });

check if account are updated.

or use auto-tests - run npm test

4. Impact of the change

N/A

5. Priority of change

Normal

6. Additional Notes

N/A