Skip to Content Skip to Menu

Flow of payment gateway

  • rbuelund
  • rbuelund
  • OFFLINE
  • Posts: 559
  • Thanks: 38
  • Karma: 4
4 years 6 months ago #315334 by rbuelund
Replied by rbuelund on topic Flow of payment gateway
So would it also be acceptable to override the httpsRequestGuzzle and then add the optional argument as stated here for child class: www.php.net/manual/en/language.oop5.abstract.php

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 68625
  • Thanks: 9109
  • Karma: 1434
4 years 6 months ago #315335 by krileon
Replied by krileon on topic Flow of payment gateway
httpsRequestGuzzle is just a helper function for calling Guzzle. You don't have to use it or override it, but you should be using Guzzle. The gateway already has a working example of using Guzzle directly to call Quickpay API; simply copy it and adjust the data being sent.


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.

  • rbuelund
  • rbuelund
  • OFFLINE
  • Posts: 559
  • Thanks: 38
  • Karma: 4
4 years 6 months ago #315336 by rbuelund
Replied by rbuelund on topic Flow of payment gateway
I get that, but I just find the helper function simple and nice to use ind the plugin.

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

  • rbuelund
  • rbuelund
  • OFFLINE
  • Posts: 559
  • Thanks: 38
  • Karma: 4
4 years 6 months ago #315411 by rbuelund
Replied by rbuelund on topic Flow of payment gateway
Have sent a new plugin for review. Hope you have the time to take a quick glance at it.

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

  • rbuelund
  • rbuelund
  • OFFLINE
  • Posts: 559
  • Thanks: 38
  • Karma: 4
4 years 5 months ago #315484 by rbuelund
Replied by rbuelund on topic Flow of payment gateway
Can see that there was a little problem with the amount of the recurring payment if it differs from the initial payment. I have now corrected that, but I need to know: What is mc_amount2 good for ? mc_amount1 is the amount of the first payment and mc_amount3 is the amount of the next payments - so what is amount2 ??

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 68625
  • Thanks: 9109
  • Karma: 1434
4 years 5 months ago #315486 by krileon
Replied by krileon on topic Flow of payment gateway
mc_amount2 and period2 are used if there's a different initial payment amount and duration in the plan. mc_amount1 and period1 are always the initial payment and duration. mc_amount3 and period3 are always the recurring amount and duration. For recurring subscriptions you typically won't use mc_amount2 and period2 since their values will get pushed to mc_amount3 and period3, but if you had a single payment plan with different initial amount and duration then it's important to have access to amount1 and amount2 for example.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn