1.4.15 • Published 23 days ago
@chargeafter/payment-sdk v1.4.15
ChargeAfter payment SDK
Installing
npm install --save @chargeafter/payment-sdk
Getting Started
import { prequalify, checkout } from "@chargeafter/payment-sdk";
// open modal to obtain available credit
prequalify({
config: {
env: {
name?: "production" | "sandbox", // defaults to "production"
apiKey: "<your api key>",
}
},
...
}).then((result: CompletionApplyData) => {
// Fires when apply flow finished
}).catch((ex: { code: String, message: string, data: CompletionApplyData }) => {
// Fires when apply flow finishes un-successfully
});
// open modal to perform full checkout
checkout({
config: {
env: {
name?: "production" | "sandbox", // defaults to "production"
apiKey: "<your api key>",
}
},
cartDetails: ...
...
}).then((result: CompletionCheckoutData) => {
// Fires when apply flow finished
}).catch((ex: { code: String, message: string, data: CompletionCheckoutData }) => {
// Fires when apply flow finishes un-successfully
});;
Check Docs for detailed callback interface for apply and checkout
1.4.15
23 days ago
1.4.14-alpha.4
27 days ago
1.4.14-alpha.1
29 days ago
1.4.14-alpha.2
29 days ago
1.4.14-alpha.3
29 days ago
1.4.14
1 month ago
1.4.13
2 months ago
1.14.12
3 months ago
1.4.12
3 months ago
1.4.11
5 months ago
1.4.6
10 months ago
1.4.9-alhpa.1
9 months ago
1.4.9-alpha.2
8 months ago
1.4.9
10 months ago
1.4.8
10 months ago
1.4.7
10 months ago
1.4.9-alpha.3
8 months ago
1.4.9-alpha.4
8 months ago
1.4.5
12 months ago
1.4.4
1 year ago
1.4.1
1 year ago
1.4.0
1 year ago
1.3.9
1 year ago
1.3.8
1 year ago
1.3.7
1 year ago
1.3.5
1 year ago
1.3.3
1 year ago
1.3.2
1 year ago
1.3.1
1 year ago
1.2.0
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago