Skip to Content Skip to Menu

[#6665] PayPal Gateway

  • krileon
  • krileon
  • ONLINE
  • Posts: 48438
  • Thanks: 8275
  • Karma: 1443
7 years 4 months ago - 7 years 4 months ago #294729 by krileon
Replied by krileon on topic PayPal Gateway
Ok, have added a feature ticket to implement sending the tax amount. As AMT is supposed to still be the total (include tax) it's just a matter of adding TAXAMT for the baskets tax value. No further changes appear to be necessary. The below should quickfix this for future purchase (this will not affect existing purchases).

IN: components/com_comprofiler/plugin/user/plug_cbpaidsubscriptions/processors/paypalpro/cbpaidsubscriptions.paypalpro.php
ON: Line 221
FROM:
Code:
'AMT' => $amount,
TO:
Code:
'AMT' => $amount, 'TAXAMT' => sprintf( '%.2f', $paymentBasket->tax ),

Similar change for recurring subscriptions on line 311.

#6665


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 7 years 4 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • cagoffice
  • cagoffice
  • OFFLINE
  • Posts: 478
  • Thanks: 27
  • Karma: 4
7 years 4 months ago #294776 by cagoffice
Replied by cagoffice on topic PayPal Gateway
I just ran a test on this by doing another payment and I got an error message



Not sure what went wrong here.
Attachments:

Please Log in or Create an account to join the conversation.

  • cagoffice
  • cagoffice
  • OFFLINE
  • Posts: 478
  • Thanks: 27
  • Karma: 4
7 years 4 months ago #294777 by cagoffice
Replied by cagoffice on topic PayPal Gateway
Also, how do I remove the second set of credit card icons from showing up?

Here are the screenshots to show the second set of icons appearing:

Attachment not found



Attachment not found

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48438
  • Thanks: 8275
  • Karma: 1443
7 years 4 months ago #294782 by krileon
Replied by krileon on topic PayPal Gateway
Check CBSubs > History Log to see what error PayPal is returning. That's the exact variable they requested be added and is used as noted in their documentation.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • cagoffice
  • cagoffice
  • OFFLINE
  • Posts: 478
  • Thanks: 27
  • Karma: 4
7 years 4 months ago #294783 by cagoffice
Replied by cagoffice on topic PayPal Gateway
Attachments:

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48438
  • Thanks: 8275
  • Karma: 1443
7 years 4 months ago #294786 by krileon
Replied by krileon on topic PayPal Gateway
Error 10413 means the totals don't match, but their documentation specifically states AMT is supposed to include the tax while TAXAMT is specifically just the total tax amount. So I have no idea. I've followed their documentation as instructed. If the AMT needs to subtract TAXAMT then they need to fix their documentation to clarify that.



It seams like the basket would need to be entirely itemized and sent to PayPal as itemized to utilize TAXAMT, but their documentation is not clear regarding that. It may require ITEMAMT, which is just AMT. You can try the below.

Code:
'AMT' => $amount, 'ITEMAMT' => $amount, 'TAXAMT' => sprintf( '%.2f', $paymentBasket->tax ),

It gets significantly more complicated if the entire payment needs to be itemized and sent to PayPal as such and such feature implementation won't be anytime soon as I'm basically having to redo the entire payment process and testing of it.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum