paypal-custom-sdk
Version:
a minimalistic paypal sdk for custom integrations
30 lines (29 loc) • 1.45 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PATHS = exports.BASE_URLS = void 0;
exports.BASE_URLS = {
PAYPAL: 'https://api.paypal.com',
SANDBOX: 'https://api.sandbox.paypal.com',
};
exports.PATHS = {
GET_TOKEN: '/v1/oauth2/token',
CREATE_PLAN: '/v1/billing/plans',
GET_PLAN: '/v1/billing/plans/{plan_id}',
ACTIVATE_PLAN: '/v1/billing/plans/{plan_id}/activate',
UPDATE_PLAN: '/v1/billing/plans/{plan_id}',
DEACTIVATE_PLAN: '/v1/billing/plans/{plan_id}/deactivate',
UPDATE_PLAN_PRICING: '/v1/billing/plans/{plan_id}/update-pricing-schemes',
CREATE_SUBSCRIPTION: '/v1/billing/subscriptions',
CANCEL_SUBSCRIPTION: '/v1/billing/subscriptions/{subscription_id}/cancel',
REVISE_SUBSCRIPTION: '/v1/billing/subscriptions/{subscription_id}/revise',
CAPTURE_SUBSCRIPTION: '/v1/billing/subscriptions/{subscription_id}/capture',
GET_SUBSCRIPTION: '/v1/billing/subscriptions/{subscription_id}',
VERIFY_IPN: '/cgi-bin/webscr',
CREATE_ORDER: '/v2/checkout/orders',
AUTHORIZE_ORDER: '/v2/checkout/orders/{order_id}/authorize',
CAPTURE_ORDER: '/v2/checkout/orders/{order_id}/capture',
GET_ORDER: '/v2/checkout/orders/{order_id}',
VOID_AUTHORIZED_PAYMENT: '/v2/payments/authorizations/{authorization_id}/void',
REFUND_CAPTURED_PAYMENT: '/v2/payments/captures/{capture_id}/refund',
GET_REFUND_DETAILS: '/v2/payments/refunds/{refund_id}',
};