Jump to content
  • 0
DennisHermannsen

Cusotm payment gateway that allows customer to enter a value

Question

Hi,

We're trying to build a payment gateway that will let the customer enter a number (only a single field, not like credit card number, CVV and expiry date). I haven't found a way to do this - is it at all possible?
The number needs to be entered before submitting the order.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Use _link function to return anything you need like follows:

<?php

function YourGateway_link($params)
{
    $output = <<<HTML
    <link href="your-style.css" rel="stylesheet" type="text/css" />
    <form method="post" action="somewhere-over-the-rainbow.php">
	<input type="text" name="something" value="1000">
	<button type="submit">Submit</button>
    </form>
HTML;

	return $output;
}

It will show a form with an input text where customers can enter your number and the submit button.

Share this post


Link to post
Share on other sites
  • 0

That doesn't seem to work. I'm redirected to creditcard.php afterwards, and WHMCS wants me to add a creditcard.

Does it have to be a special type of payment gateway?

Share this post


Link to post
Share on other sites
  • 0
On 11/1/2019 at 7:11 PM, Kian said:

It will show a form with an input text where customers can enter your number and the submit button.

I'm not having any luck with this. Any idea why, @Kian?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated