yarn add @pinelab/vendure-plugin-accept-blue
to install this plugin.
yarn add @pinelab/vendure-plugin-accept-blue
to install this plugin.
Create recurring subscriptions with the Accept Blue platform.
addPaymentToOrder
and supplies credit card details:PaymentSettled
AcceptBluePlugin.init({
subscriptionStrategy: new DefaultSubscriptionStrategy()
}),
:warning: Set ACCEPT_BLUE_TEST_MODE=true
in your .env
to use Accept Blue in test mode.
These are the different payment methods you can use to pay for an order. Keep in mind that these examples use sample input data.
If a customer already has a payment method saved in Accept Blue, you can use that to pay for an order.
mutation {
addPaymentToOrder(
input: { method: "accept-blue", metadata: { paymentMethodId: 15087 } }
) {
... on Order {
id
code
}
}
}
mutation {
addPaymentToOrder(
input: {
method: "accept-blue"
metadata: {
name: "Hayden Zieme"
routing_number: "011000138"
account_number: "49000002087"
account_type: "Checking"
sec_code: "PPD"
}
}
) {
... on Order {
id
code
}
}
}
With the hosted tokenization form, you can obtain a token that represents a credit card, and use that to pay for an order. More info on hosted tokenization here: https://docs.accept.blue/tokenization/v0.2
mutation {
addPaymentToOrder(
input: {
method: "accept-blue"
metadata: {
source: "nonce-z5frsiogt4kce2paljeb"
last4: "1115"
expiry_year: 2030
expiry_month: 3
}
}
) {
... on Order {
id
code
}
}
}
If you run into CORS issues loading the Accept Blue hosted tokenization javascript library, you might need to remove the cross-origin
key on your script
tag.