Workflows Payment Tasks
Option 1
Task per Payment Provider
Stripe
task: "Stripe/Charge"
input:
providerConfig:
fromConfig: "stripe"
input:
amount: 1000
currency: "usd"
source: "tok_visa"
description: "Charge for"
capture: true
creditCard:
number: "4242424242424242"
expMonth: 12
expYear: 2021
cvc: "123"
Generic Task
task: "PaymentGateway/Charge"
input:
provider: "ABSolute"
providerConfig:
fromConfig: "absolute"
input:
customerId : "{{ customerId }}"
amount: 1000
currency: "usd"
source: "tok_visa"
description: "Charge for"
capture: false
creditCard:
number: "4242424242424242"
decrypt:
keyName: "stripe"
expMonth: 12
expYear: 2021
cvc: "123"
output:
- name: "chargeId"
value: "chargeId"