1.3.0 • Published 2 months ago
@storecraft/payments-paypal v1.3.0
Paypal payment gateway for StoreCraft
paypal integration
Features
- Create checkouts with
AUTHORIZE
orCAPTURE
intents capture
,void
,refund
actions- Get a readable and explainable
status
- Supports both
prod
andtest
endpoints
npm i @storecraft/payments-paypal
Howto
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
3 months ago
1.0.16
3 months ago
1.2.5
2 months ago
1.3.0
2 months ago
1.0.15
3 months ago
1.0.14
4 months ago
1.0.13
4 months ago
1.0.11
4 months ago
1.0.12
4 months ago
1.0.9
5 months ago
1.0.8
5 months ago
1.0.7
7 months ago
1.0.6
8 months ago
1.0.10
5 months ago
1.0.5
9 months ago
1.0.4
9 months ago
1.0.3
9 months ago
1.0.2
9 months ago
1.0.1
11 months ago
1.0.0
12 months ago