Closed (fixed)
Project:
Commerce Braintree
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2013 at 23:42 UTC
Updated:
18 Jun 2015 at 20:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
hazaPatch seems nice.
It seems that Braintree doesn't support multiple merchant account on the Sandbox account. Do you know something about that ?
Do you use this patch in a live environnement ?
Comment #2
j0rd commented@Haza you can get braintree to enable multiple merchant accounts in your sandbox. You need to email them.
Comment #3
haza@j0rd : So I guess you have a multiple merchant account in your sandbox ? Did you test the patch above ?
Comment #4
j0rd commentedNo, I have custom code that looks exactly the same though :)
Allows you to input a merchant account ID in processor settings for each currency you have enabled. During a sale if you don't have a merchant account ID associated with the currency used in the sale it will default to default currency in braintree by not sending the merchant account id.
There are other use cases on switching merchant account ID besides currencies, but I suspect this is the most common and it should be implemented as 7wonders has done it.
This code for me will be released in my COF-2.x patch coming this week.
Comment #5
gbisht commentedI need multi currency support for my project strandofsilk.com. Provided patch is working but needed reroll so here is the reroll for latest code.
Comment #6
luksakWhat happened here? Is this ready to get committed? What about 7.x-2.x?
Comment #7
luksakI rerolled the patch against 7.x-2.x. Please have a look.
Comment #8
luksakComment #9
hazaRight now, I am not able to test it. Still, I'll RTBC this as it seems to do the job.
If anyone have tested it in real condition, and saw some issues with that, please update here.
RTBC for a week, then commit if no issues cames from this.
Comment #10
luksakI'll set it back to needs review since some else should test the functionality.
Comment #11
rickmanelius commentedI have my braintree account setup to allow multiple currencies, but it's been a while since I've setup Drupal Commerce to allow the specification of currency on checkout. Can one of you on this thread provide instructions (or a suitable reference link) so I can better verify/review this patch?
Comment #12
luksakSince we just got #2449881: Add support for Drop-in UI for PCI SAQ A Compliance commited, we can now also support Drop-In UI multi-currency transactions. Attached is the updated patch.
@rickmanelius: give me a minute to provide you with steps to reproduce.
Comment #13
luksakSteps to test the patch:
Phew... This is it I think :) Happy testing!
Comment #14
rickmanelius commentedThanks Lukas! I ran through the tests for both the transparent redirect and the drop in UI. The transparent redirect worked perfectly, but the drop in UI kept defaulting to USD when I was attempting to charge in Euros. So given that we're trying to ensure compatibility with both, I'm setting this to "Needs Work" for now.
Comment #15
luksakThis happens when Braintree is provided with an invalid or no merchant account ID. Can you check what is being passed. Did you configure the Drop-In UI properly? Can you debug
$sale_datainsidecommerce_braintree_dropin_submit_form_submit()to verify that the IDs are present? If so, everything should be working fine.Comment #16
rickmanelius commentedHi Lukas. I'll give those a try. I can confirm that I'm using the exact same credentials on both the Drop-In UI and the transparent redirect. When I get a chance, I'll do some additional debugging per your suggestions.
Comment #17
luksakI just recreated a fresh installation using my instructions in #13 and it worked. Could you please try to reproduce your bug? I would like to get this committed soon...
Comment #18
rickmanelius commentedHi Lukas. It would help if I was using the correct patch. :) My initial test was with #7 and I just tested with #12. I've attached the results from running USD then EUR transactions with both transparent redirect and then drop in UI. Looks like we're good on all 4 permutations. Marking RBTC. Thanks again for taking the time to provide the thorough testing instructions.
Comment #20
luksakThanks everyone!
Comment #21
andyg5000Looks like this commit introduced a critical bug at least with the drop in ui integration. See #2500689: Single currency sites cannot create transacations