Is there a way to manage more then one payflow pro account? I have 2 merchant accounts one for Canadian Dollars and one for US dollars. Amex Canada requires that we bill in Canadian dollars.

Comments

kwinters’s picture

Status: Active » Needs review

The module is definitely not designed with two different PFP logins in mind. Making that work would take a lot of effort or bad hacks. Search the code for variable_get('uc_payflowpro_user' to see how it's used.

The XML Pay spec document (which is the method the module uses to send data to PayPal) says "Amount (US Dollars) U.S. based currency" and similar descriptions for the various amount fields. I checked the other document (RESTful) and it also says USD all over. So, I don't really know what to do about that one. You may have to contact PayPal directly for more information.

gweston’s picture

What about just duplicating the module and changing the name to Payflow pro 1 and payflow pro 2.

Then route amex users to payflow pro 2

kwinters’s picture

Duplicating a Drupal module isn't really all that straight-forward, since you will have to rename a ton of functions too. It would probably work, but isn't necessarily better than just hacking the logic directly into the module (which is already far from ideal). In both cases you have to patch manually every time a new release comes out.

kwinters’s picture

Another thought: you could use a separate subdomain + Drupal multisite to split off Canadian users.

gweston’s picture

for Canadian users i can just run a separate site. That is not a big deal.

The overall issue tho is american express. They do not allow us to bill in USD. So I will not be able to accept AMEX.

kwinters’s picture

Yeah you'll have to contact PayPal to see what the situation is there. Payflow may already do something to handle that behind the scenes.

kwinters’s picture

Status: Needs review » Closed (fixed)

This appears to have been resolved, so closing.