issues
search
circlesland
/
o-platform
GNU Affero General Public License v3.0
3
stars
1
forks
source link
New marketplace payment handling
#885
Open
jaensen
opened
2 years ago
jaensen
commented
2 years ago
Buyer fills cart with Offers from multiple Shops/Sellers
Buyer confirms purchase by clicking "Buy now"
Marketplace creates invoices for each Seller
Marketplace hands the invoices over to the new PaymentService
The PaymentService creates an EOA for each invoice (to collect all payments as a 'trustee')
The payment service notifies the frontend about where to send the payments to (to the EOAs)
On each new incoming TX the PaymentService checks if the whole payment amount arrived
When the whole payment amount was reached then the service sends the contents of the EOA to the seller (in one Transaction)
Add "payed" event to the invoice
Complete the purchase when all invoices have been payed
Specialties of € payments:
Are done via GoCardless
For every incoming GoCardless TX we will send xDai of the same worth to the payment EOA.
Specialties of € payments: