omise / omise-node

Omise Node.js Library
https://docs.opn.ooo
102 stars 53 forks source link

Cannot call create from omise.schedules #102

Closed siriwatknp closed 5 years ago

siriwatknp commented 5 years ago

I followed the documentation but got this error

omise.schedules.create({
    'every': 2,
    'period': 'day',
    'start_date': '2017-05-01',
    'end_date': '2018-05-01',
    'charge': {
        'customer': 'cust_test_57m2wcnfx96k634rkqq',
        'card': 'card_test_57m2w8iemdovs4f92m2',
        'amount': 100000,
        'description': 'Membership fee'
    }
}, function(error, schedule) {
    /* Response. */
});
TypeError: Cannot read property 'retrieve' of undefined
siriwatknp commented 5 years ago

Sorry, I use the wrong version.