Need more documentation on this. Will use the SmashPig code written in T324294. I assume it will need redirection to a bank app or website, and that the DIRECTness here just means we skip a redirect through DLocal
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T274300 Upgrade Dlocal to leverage Smartfields/no redirect | |||
Resolved | AnnWF | T324295 Implement one-time UPI / DIRECT payments for DLocal in DonationInterface |
Event Timeline
According to the email thread with Sebastian:
1: we have the UD enabled for our new sandbox account:can get validate via the {{host}}/payments-methods?country=IN.
Here add a new field without save to civi names UPI id. (Confirmed with Evelyn)
2: we need to ask donor provide their upi id which needs to pass to the create payment request as
{
"amount": 0, "currency": "INR", "country": "IN", "payment_method_flow": "DIRECT", "payment_method_id": "UD", "payer": { "name": "Thiago Gabriel", "email": "thiago@example.com", "document": "AAAAA9999C", "address": { "city": "Mumbai" } }, "wallet": { "verify": true, "account_id": "11111111@axisb", "capture": false, "token": "" }, "order_id": "497529111040", "notification_url": "http://merchant.com/notifications"
}
to receive if verified, then use this upi id to collect money
Change 902824 had a related patch set uploaded (by Wfan; author: Wfan):
[wikimedia/fundraising/dev@master] Add test link for direct upi
Change 902609 had a related patch set uploaded (by Wfan; author: Wfan):
[mediawiki/extensions/DonationInterface@master] Add upi id field for direct upi
Change 902824 merged by AndyRussG:
[wikimedia/fundraising/dev@master] Add test link for direct upi
Change 902609 merged by jenkins-bot:
[mediawiki/extensions/DonationInterface@master] Add upi id field for direct upi
Hi! The linked DonationInterface patch has been deployed, and the form does ask for UPI ID when we specify recurring=0 and payment_submethod=upi on the URL.
However, the back-end code doesn't currently send the right data (see this comment), so the user still gets the redirect flow.
Also, note that upi_id is making it onto the queue messages, though we currently don't store it anywhere in Civi.
Thanks!!
Change 903712 had a related patch set uploaded (by Wfan; author: Wfan):
[mediawiki/extensions/DonationInterface@master] Add config to control if use direct bt for india
Change 903712 merged by jenkins-bot:
[mediawiki/extensions/DonationInterface@master] Add config to control if use direct bt for india