Giter VIP home page Giter VIP logo

sagepayform-php's Introduction

Hi there ๐Ÿ‘‹

sagepayform-php's People

Contributors

andygaskell avatar benrolfe avatar bitdeli-chef avatar ddxor avatar feridmovsumov avatar mattpass avatar micotodev avatar tolzhabayev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sagepayform-php's Issues

Using you class

I get the following error:

mcrypt_encrypt(): Attempt to use an empty IV, which is NOT recommend

missing ?> in form

hi,

thanks for class. there is a mssing ?> in form code.
value= "<?php echo $sagePay->getCrypt()">

regards

decodeAndDecrypt - change

I used your class for a project. It worked nice but I'd had problems getting and decrypting the crypt data from the SagePay.
A solution which helped was to change a bit the ' decodeAndDecrypt' function.
I changed this row of the the decodeAndDecrypt function in the SagePay.php :

return mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $this->encryptPassword, $strIn, MCRYPT_MODE_CBC);

to:

return mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $this->encryptPassword, $strIn, MCRYPT_MODE_CBC, $this->encryptPassword);

Now everything work just fine for me :)
I hope that his make some sense an thanks for a very good work ...

5080 Error

Hi,

I have been using this for our eBay customers to pay by card successfully for several months.

I have just gone to send a customer a link and thought I check it's still working as expected, but got the error:
5080 : Form transaction registration failed.

I tried to use your default index.php code and just checked the vendor, but got the same error?

I have tried setting it to use the test and live urls, but keep getting this same error.

I will contact SagePay to see if anything has changed and if they can help troubleshoot, but thought I would raise it here as well.

Grateful for any help you can provide.

Chris

Sagepay

Warning: mcrypt_encrypt(): Key of size 0 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported

5005 error

i have downloaded these files and added my encryption password to sagepay.php and also added my values to the vendor name within the form and the vendortxtcode etc. When i process the form i get a 5005 error - do i need to install Sage's integration kit for PHP or does this replace their kit - am i missing something? Sorry, new to this :(

Status: MALFORMED Status Detail: 3045 : The Currency field is missing.

Hi there,

I keep getting the error mentioned above, I am pretty sure that everything is in place and don't know where I am going wrong.

Any chance you could have a look?

Thanks,

$sagePay = new SagePay();
$sagePay->setCurrency('GBP');
$sagePay->setAmount('100');
$sagePay->setDescription('Breakdown Cover');
$sagePay->setBillingSurname('Bowers');
$sagePay->setBillingFirstnames('Scott');
$sagePay->setBillingCity('Wakefield');
$sagePay->setBillingPostCode('WF59TJ');
$sagePay->setBillingAddress1('1 The Gateway, Fryersway');
$sagePay->setBillingCountry('gb');
$sagePay->setDeliverySameAsBilling();

$sagePay->setSuccessURL($websiteRoot.'quote/step/6/success');
$sagePay->setFailureURL($websiteRoot.'quote/step/6/failure');

?>

Malformed: currency is not set.

Hi I'm having an issue where as it says the currency is not set when i'm proceeding to the payment page. I'm guessing its not the currency which is the issue but I'm stuck as to what else it could be? I've included all the required fields????

Post Input Name Value

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...?

Success Page Blank

I have used this form and works great up until the success page.. I am getting a blank page i did a little test and it seems to not be able to pull or see that there is a encrypted content being sent via the url. I added a if else to check this and it is not pulling or seeing a value there so is not triggering the decode function..

Any help be great

Not Working

This Library is not working always producing following:

This transaction attempt has failed. We are unable to redirect you back to the web store from which you were purchasing. The details of the failure are given below.

Status: MALFORMED

Status Detail: 3045 : The Currency field is missing.

Is it possible to adapt it so that it passes form values to the variables sagepay needs.

So the user enters billing details and amount they wish to pay then this is sent to sagepay?

Would I just need to adapt the sagepay.php file so that the variables equal the post value of the field.

Or can I do this in the index.php where the form is. As the information would be set when the page loads but rather when the form is posted.

Not looking for a copy and paste answer just a point in the right direction.

tiny thing in success.php

For a while I was thinking that I was getting no success response, then I realised was just because as far as I know, you can't do this

print_r('<pre>'.$responseArray.'</pre>');

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.