Title: Payflow Gateway Reports "Invalid tender" on Reference Transaction · Issue #5 · bkeating/python-payflowpro · GitHub
Open Graph Title: Payflow Gateway Reports "Invalid tender" on Reference Transaction · Issue #5 · bkeating/python-payflowpro
X Title: Payflow Gateway Reports "Invalid tender" on Reference Transaction · Issue #5 · bkeating/python-payflowpro
Description: 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...
Open Graph Description: 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...
X Description: 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 T...
Opengraph URL: https://github.com/bkeating/python-payflowpro/issues/5
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Payflow Gateway Reports \"Invalid tender\" on Reference Transaction","articleBody":"Thank you for all the hard work on this API.\n\nI 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. \n\nThe payflow docs describe: \n\"Invalid tender type. Your merchant bank account does not support the following credit card type that \nwas submitted.\"\n\nWhen 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. \n\nWhat python-payflow-pro sent to the gateway: \n\n```\nAMT[1]=4\u0026CURRENCY[3]=USD\u0026ORIGID[12]=*******\u0026PARTNER[6]=PayPal\u0026PWD[13]=********\u0026TRXTYPE[1]=S\u0026USER[12]=******\u0026VENDOR[12]=*****\n```\n\nWhat the PayFlow Pro docs say should be sent: \n\n```\nTRXTYPE=A\u0026TENDER=C\u0026PWD=x1y2z3\u0026PARTNER=PayPal\u0026VENDOR=SuperMerchant\u0026USER=SuperMerchant\u0026ACCT=5555555555554444\u0026EXPDATE=0308\u0026AMT=100.00\u0026INVNUM=123456789\u0026STREET=5199 MAPLE\u0026ZIP=94588\n```\n\nIf you notice, the TENDER=\"C\" parameter is missing from the python payflow-pro generated request.\n\nI 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? \n\n```\n....\n\nclass Tender(): \n \"\"\"\n Force the tender into the parmas list sent to paypal\n \"\"\"\n def __init__(self, *args, **kwargs):\n self.data = {'TENDER':\"C\"}\n\n def __len__(self):\n return len(self.data)\n\n\n client.reference_transaction(\n transaction_type=transaction_type, original_pnref=original_pnref,\n amount=Amount(amt=amount, currency=\"USD\"), extras=[Tender()])\n```\n\nAnyway, just bringing this up here in case it is an API issue. \nThanks for reading,\nJoe\n","author":{"url":"https://github.com/JoeJasinski","@type":"Person","name":"JoeJasinski"},"datePublished":"2011-12-08T23:22:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/5/python-payflowpro/issues/5"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:746d1d6b-3ea1-2fcf-bd0d-2b04b0f3e4a6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CF4C:1CE497:1080F52:15E2A89:6A5BD8C4 |
| html-safe-nonce | 04decd34b7d4fa90425efcc531ef207b7adb9b01355b2a5b2ee45adf4d117f9e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjRDOjFDRTQ5NzoxMDgwRjUyOjE1RTJBODk6NkE1QkQ4QzQiLCJ2aXNpdG9yX2lkIjoiNDc4MjUyNzYzODcxOTQyMDYxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 799989ab98657428c579a7283fd6db5a9a7c08c97b990d3c139e61cf9052c728 |
| hovercard-subject-tag | issue:2496006 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bkeating/python-payflowpro/5/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d7a614c9d1e0d84c14f5bd3685bf5f3635da181e871a1e248f3993e8304f61f2/bkeating/python-payflowpro/issues/5 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d7a614c9d1e0d84c14f5bd3685bf5f3635da181e871a1e248f3993e8304f61f2/bkeating/python-payflowpro/issues/5 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JoeJasinski |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/bkeating/python-payflowpro git https://github.com/bkeating/python-payflowpro.git |
| octolytics-dimension-user_id | 157924 |
| octolytics-dimension-user_login | bkeating |
| octolytics-dimension-repository_id | 712657 |
| octolytics-dimension-repository_nwo | bkeating/python-payflowpro |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 712657 |
| octolytics-dimension-repository_network_root_nwo | bkeating/python-payflowpro |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width