You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed a slight issue when using the reference_transaction() method. The Payflow gateway would report back to me that I had submitted "Invalid Tender" and the transaction fails.
The payflow docs describe:
"Invalid tender type. Your merchant bank account does not support the following credit card type that
was submitted."
When I looked at the query parameters that python-payflow-pro was sending to the gateway, I noticed that what it was sending was different from what the docs suggested.
If you notice, the TENDER="C" parameter is missing from the python payflow-pro generated request.
I was able to force this parameter into the request using a Tender class with a "data" property. However, this feels a bit kludgy. Maybe I'm doing something wrong or using reference transactions incorrectly?
....
class Tender():
"""
Force the tender into the parmas list sent to paypal
"""
def __init__(self, *args, **kwargs):
self.data = {'TENDER':"C"}
def __len__(self):
return len(self.data)
client.reference_transaction(
transaction_type=transaction_type, original_pnref=original_pnref,
amount=Amount(amt=amount, currency="USD"), extras=[Tender()])
Anyway, just bringing this up here in case it is an API issue.
Thanks for reading,
Joe
The text was updated successfully, but these errors were encountered:
Thank you for all the hard work on this API.
I noticed a slight issue when using the reference_transaction() method. The Payflow gateway would report back to me that I had submitted "Invalid Tender" and the transaction fails.
The payflow docs describe:
"Invalid tender type. Your merchant bank account does not support the following credit card type that
was submitted."
When I looked at the query parameters that python-payflow-pro was sending to the gateway, I noticed that what it was sending was different from what the docs suggested.
What python-payflow-pro sent to the gateway:
What the PayFlow Pro docs say should be sent:
If you notice, the TENDER="C" parameter is missing from the python payflow-pro generated request.
I was able to force this parameter into the request using a Tender class with a "data" property. However, this feels a bit kludgy. Maybe I'm doing something wrong or using reference transactions incorrectly?
Anyway, just bringing this up here in case it is an API issue.
Thanks for reading,
Joe
The text was updated successfully, but these errors were encountered: