/
home
/
infinitibizsol
/
.trash
/
routes.2
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/routes.2/paymentRoute.js
const router = require("express").Router(); const { paymentController, createCustomer, attachPaymentMethod, createCharges, PaymentMethods, detachPaymentMethod, createSubscriptionController, updateDefaultPaymentMethod, getSubscriptionDetails, disabledAutoPayment, deleteCanceledSubscriptionsController, getPrices, createCheckOut, customerPortal, } = require("../controllers/paymentController"); router.post("/create-payment-intent", paymentController); router.post("/get-prices", getPrices); router.post("/update-default-payment-method", updateDefaultPaymentMethod); router.post("/get-subscription-details", getSubscriptionDetails); router.post("/create-subscription", createSubscriptionController); router.post("/create-checkout", createCheckOut); router.post("/customer-portal", customerPortal); router.post( "/delete-canceled-subscription", deleteCanceledSubscriptionsController ); router.post("/disabled-autopayment", disabledAutoPayment); router.post("/create-customer", createCustomer); router.post("/add-card", attachPaymentMethod); router.post("/detach-payment-method", detachPaymentMethod); router.post("/create-charges", createCharges); router.post("/payment-methods", PaymentMethods); module.exports = router;
Copyright ©2k19 -
Hexid
|
Tex7ure