GCDTech / Rhubarb.Scaffold.Payments

A pattern for payments
Apache License 2.0
0 stars 0 forks source link

Setup DB table in scaffold to capture all required fields for payment journies #4

Open acuthbert opened 5 years ago

acuthbert commented 5 years ago

Need to capture

Amount, currency, address (optional), description summary, provider identifier (should this be primary key?), status (Created, Pending, Awaiting SCA, Success, Failed)

jmcelreavey commented 5 years ago

I had been thinking about this and came up with the following list:

I was thinking since each provider have different payment identifiers we could hold an object in additional data specific to the provider type. Realex for example require an Auth Code, Order ID and Transaction ID to issue a refund whereas you could probably get everything from the PaymentIntent for Stripe.