1.3.0 • Published 12 months ago
@storecraft/payments-paypal v1.3.0
Paypal payment gateway for StoreCraft
paypal integration
Features
- Create checkouts with
AUTHORIZEorCAPTUREintents capture,void,refundactions- Get a readable and explainable
status - Supports both
prodandtestendpoints
npm i @storecraft/payments-paypalHowto
import { PayPal, Config } from '@storecraft/payments-paypal';
const config: Config = {
env: 'prod',
client_id: process.env.PAYPAL_CLIENT_ID,
secret: env.process.PAYPAL_SECRET,
currency_code: 'USD',
intent_on_checkout: 'AUTHORIZE'
}
new Paypal(config);In Storecraft App
import { App } from '@storecraft/core';
import { MongoDB } from '@storecraft/database-mongodb';
import { NodePlatform } from '@storecraft/core/platform/node';
import { GoogleStorage } from '@storecraft/storage-google';
import { Paypal } from '@storecraft/payments-paypal'
const app = new App(config)
.withPlatform(new NodePlatform())
.withDatabase(new MongoDB())
.withStorage(new GoogleStorage())
.withPaymentGateways({
paypal_standard_prod: new Paypal() // config can be inferred from env variables
}).init();Developer info and test
Integration examples
Credit Card Generator
todo:
- Add tests
- Add webhook support
Author: Tomer Shalev (tomer.shalev@gmail.com)1.0.17
1 year ago
1.0.16
1 year ago
1.2.5
1 year ago
1.3.0
12 months ago
1.0.15
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.11
1 year ago
1.0.12
1 year ago
1.0.9
1 year ago
1.0.8
1 year ago
1.0.7
1 year ago
1.0.6
2 years ago
1.0.10
1 year ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago