Closed jofftiquez closed 4 years ago
Hello! Thank you for submitting an issue.
@jofftiquez when will this feature available? :)
@ccfiel now that there's someone interested I might expedite the ETA. I thinking, tomorrow, in-time for Easter Sunday. :)
@jofftiquez wow! thanks for the update! :)
Hello @ccfiel the latest updates are now available in this branch feat/next.
Tests are all passing. I will merge this soon today as soon the docs are done.
There has been some major changes in the syntax of using the paymongo
instance. I decided to mimic the Stripe's node.js library pattern. E.g. stripe.subscriptions.create()
Altho the docs are not yet completed, you can test the build in the ./dist
folder. For your convenience here are all the available available methods.
const paymongo = new Paymongo(process.env.secret);
// Payment Methods
paymongo.paymentMethods.create(data);
paymongo.paymentMethods.retrieve(id);
// Payment Intents
paymongo.paymentIntents.create(data);
paymongo.paymentIntents.retrieve(id);
paymongo.paymentIntents.attach(id, data);
// Sources
paymongo.sources.create(data);
// Payments
paymongo.payments.create(data);
paymongo.payments.retrieve(id);
paymongo.payments.list();
// Tokens (DEPRECATED)
paymongo.tokens.create(data);
paymongo.tokens.retrieve(id);
// Webhooks
paymongo.webhooks.create(data);
paymongo.webhooks.retrieve(id);
paymongo.webhooks.list();
paymongo.webhooks.toggle(id, action); // action = 'enable' or 'disable'
@jofftiquez wow that was fast! thanks! I will test it
@ccfiel btw it's already release try v1.0.0
Thanks! 😀
Refer to next version