-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post Input Name Value #17
Comments
Hey, of course you can, dont see why not? Maybe show me more code so i can see whats the problem you are having? |
Hey Timur, I thought it might be but haven't managed to get it working yet. I've added an example of the form that i'm using but you can see the idea that i'm going for.
|
Looks fine to me, and below this code you should do:
|
Thats what I thought. Let me give it another whirl and see if I can get it going. Will keep you posted. Thanks for taking a look. |
Hey OllyAlpha, did you get this working? I can only get it working if I hard code the values into the following like this: |
try debugging / printing the value of I would also recommend considering this library which is more up to date: https://github.com/thephpleague/omnipay-sagepay |
Hi Timur,
Hoping you can help. I'm using your simple Sage Pay form which is awesome but unfortunaltely i'm having an issue posting the input/name value to Sage Pay.
If i set the value as you have done in your example:
$sagePay->setCurrency('EUR');
$sagePay->setAmount('100');
$sagePay->setDescription('Lorem ipsum');
$sagePay->setBillingSurname('Mustermann');
etc
all works well and it goes to sage pay with no errors.
but
Is there a way of having the value of the input field post to Sage Pay so it's dynamic?
For example: $sagePay->setAmount($_POST['Amount']); $sagePay->setDescription($_POST['Description']);
$sagePay->setBillingFirstnames($_POST['BillingFirstnames']); $sagePay->setBillingSurname($_POST['BillingSurname']);
Would really appreciate any help on this...?
The text was updated successfully, but these errors were encountered: