Add Custom Payment Form to Checkout Process

Antonio Developer asked on June 26, 2017 17:09

Hello everybody

I created a custom Payment gateway and added it to the shipping options. I can select my new custom Paymentoption but the form ist not displaying in the Checkout Process. How can I add the custom Payment Gateway to the Checkout Process?

Thanks :)

Recent Answers


Brenden Kehren answered on June 26, 2017 17:31

Not only do you need to create the gateway, but you need to create the form that goes along with it. The form path is defined in the payment gateway. What I'm guessing is you have an in correct path, have not created the form OR the form is throwing an error and not loading.

0 votesVote for this answer Mark as a Correct answer

Antonio Developer answered on June 26, 2017 17:51

I created the correspondig form and added the files (.ascx and ascx.cs) in the PaymentGateways Folder. The Form contains only a label with text..

How or where can I check If my form is throwing errors?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on June 26, 2017 22:29

What version are you running on? You can check the Kentico event log for errors.

If running v8 or newer, you need to specify the path in your custom payment provider code and not just place your form code in a folder.

0 votesVote for this answer Mark as a Correct answer

Antonio Developer answered on June 27, 2017 09:06 (last edited on June 27, 2017 10:28)

Iam running Version 9, I specified the path in my custom Provider:

public override string GetPaymentDataFormPath()
{
  return "~/CMSModules/Ecommerce/Controls/PaymentGateways/DummyPaymentForm.ascx";
}

And there I placed my form files! Have I used the proper method? I found a other method to ovverride: public override string GetPaymentDataFormPath()

Do I have to add the form to the Order Completed Page?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.