Geoff Barlow
2017-10-04T09:03:32Z
Hi all,

I'm in the middle of looking into create a new payment gateway/method which is not a standard payment system and I'm looking for some advice....

The payment server offers many types of payment options in 1 solution:

- Sofort
- PayPal
- Mistercash
- iDeal
--- bank 1
--- bank 2
--- bank 3
--- etc.
The payment provider supplies a list of payment options that are active for the account holder via json

All options can be built up and displayed on the checkout page.

This is similar to the credit card within the system now: card1, card2 etc.

I have 2 questions:
1. Which dev option should I use, the "payment gateway" or "payment method" and whats the difference?
2. How would I directly integrate the payment options i.e. now you have radio buttons with the payment options:

- paypal
- ogone
- Moneris

would like to replace this with:

- Sofort,
- PayPal,
- Mistercash
- iDeal
--- bank 1
--- bank 2
--- bank 3
--- etc.

which is generated by 1 payment gateway/method and iDeal would have a dropdown of banks.

I have done this already in NBStore but I'm looking at doing the same in your system.

Any advice would be helpful.

Regards,
Geoff.
Will Strohl
2017-10-04T18:28:52Z
Great post, Geoff!

With iDeal, would it be implemented in a way that the customer chooses the bank, or the store owner chooses the bank?
Will Strohl, Upendo Ventures
Hotcakes Cloud  | Get Support  | Code Support 
Official Cloud & Support provider for Hotcakes
Geoff Barlow
2017-10-05T06:48:03Z
Hey Will,
Correct, the customer would choose the bank, most likely from a drop down so..

The customer would have a choice of:

- Sofort (radio button)
- PayPal (radio button)
- Mistercash (radio button)
- iDeal (radio button with drop down)
--- bank 1 (choice from drop down after iDeal is selected)
--- bank 2 (choice from drop down after iDeal is selected)
--- bank 3 (choice from drop down after iDeal is selected)
--- etc.

All options are supplied from an api from the supplier of the payment system.

I was looking at the '_DisplayPaymentMethods.cshtml' to see if I can bring in all the payment functionality there to build the payment options and build the dropdown from there (don't know if this is a good thing to do) but ran into the problem of not being able to bring in the Payment settings..

Tried:

var settingVals = new DnnC.MolliePayment.MolliePaymentSettings();
var methodSettings = HccApp.CurrentStore.Settings.MethodSettingsGet(MolliePayment.Id());
settings.Merge(methodSettings);

but had a problem with HccApp not being recognized

Thanks for the advice so far,
Regards,
Geoff.

Kurt
  •  Kurt
  • 78.25% (Friendly)
  • Member
2017-10-05T10:50:39Z
Dear Geoff,

Can you share this HCC (payment) extension with us (on github). Maybe I can help you.
Will Strohl
2017-10-05T18:00:55Z
Geoff:

The payment methods you see in checkout are loaded via an extension point.

https://hotcakescommerce...m-Payment-Method-Example 

Each of the radio button options represent a specific payment method. You'd want to use this extension point to create a separate payment method for Sofort, Mistercash, and iDeal. PayPal already exists (but it needs to be updated to use the new API's).

The only problem here is that in addition to creating these payment methods, there currently isn't a built-in way to change the UI to display an additional drop down list option based upon a payment method type. In order to do this, you'd have to update your custom viewset to support it. This is technically not a core change, but rather just modifying the viewset extension point.
Will Strohl, Upendo Ventures
Hotcakes Cloud  | Get Support  | Code Support 
Official Cloud & Support provider for Hotcakes
Geoff Barlow
2017-10-06T08:48:16Z
OK, thanks Will,
Already started to break up the individual payment methods, I do have another idea on how to solve the problem but have to test it to see if it'll work.

I take it that the custom viewset (checkout, if I'm correct) will also have the file ''_DisplayPaymentMethods.cshtml' in it so that I can insert the dropdown etc., I still need to know how to bring in the payment method settings....

"
var settingVals = new DnnC.MolliePayment.MolliePaymentSettings();
var methodSettings = HccApp.CurrentStore.Settings.MethodSettingsGet(MolliePayment.Id());
settings.Merge(methodSettings);

but had a problem with HccApp not being recognized
"
If you could give me a hint on how to get the settings it would be really helpful.

Thanks so far,
regards,
Geoff.


Geoff Barlow
2017-10-13T07:18:14Z
Hi all,
Just a heads up...
The payment gateway is coming on quite well, managed to do it within 1 payment methods instead of splitting it into individual payment methods and I'm now working on the return to the cart when payment is made (or not made 😉 )

Thanks for the help so far.

Regards,
Geoff.
Kurt
  •  Kurt
  • 78.25% (Friendly)
  • Member
2017-10-13T19:55:14Z
Dear Geoff,

Can you please share Your solution with as. I really need some working code.

Kind regards,

Kurt Wilbies
Will Strohl
2017-10-16T16:58:15Z
Originally Posted by: Geoff Barlow 

Hi all,
Just a heads up...
The payment gateway is coming on quite well, managed to do it within 1 payment methods instead of splitting it into individual payment methods and I'm now working on the return to the cart when payment is made (or not made 😉 )

Thanks for the help so far.

Regards,
Geoff.



Depending on the project parameters, it might be good to see this as a pull request. I mean, if it's possible.

Regardless, I hope you might have time to blog about your experience. I can even open up the blog here for you to post as a guest blogger to get community points. It's also okay to cross-post it from another source. 🙂
Will Strohl, Upendo Ventures
Hotcakes Cloud  | Get Support  | Code Support 
Official Cloud & Support provider for Hotcakes
Geoff Barlow
2017-10-24T09:01:02Z
Hey Will,
Sounds good but it all depends on time.
The gateway is now 98% finished and after it is I'll be moving on to creating a theme ( probably use 1 of my open source themes ) that I'll make available for everyone to use and creating a new viewset as well.

Regards,
Geoff.
Will Strohl
2017-10-26T18:22:08Z
That sounds great. Thanks, Geoff! 🙂
Will Strohl, Upendo Ventures
Hotcakes Cloud  | Get Support  | Code Support 
Official Cloud & Support provider for Hotcakes
Kurt
  •  Kurt
  • 78.25% (Friendly)
  • Member
2017-10-27T10:37:54Z
Geoff,

News, experiences, challenges, examples (github) so far (Dutch Mollie).
Kurt
  •  Kurt
  • 78.25% (Friendly)
  • Member
2018-01-15T21:15:38Z
Dear Geoff Barlow,

We are waiting for your module. Hcc is valuable but also your module (for the community) and I hope you share your code with us (as arrow shared their code with US). Or maybe you can send me a copy to my email [email protected].
Kurt
  •  Kurt
  • 78.25% (Friendly)
  • Member
2018-01-25T17:53:50Z
Dear Geoff Barlow,

We are still waiting for your module / contribution. You promised to publish the code + theme.
Loading
  • Sign-up for the Hotcakes Community Newsletter: