Integration with Worldpay payments for django-oscar
This package provides integration between django-oscar and Worldpay Select Junior (also known as HTML Redirect).
These payment options can be used individually or together. Further, the package is structured so that it can be used without Oscar if you so wish.
We believe this product is usable in production, but as always, it is released as-is without warranty. If you find any bugs please submit either a bug report or a pull request.
This package supports the so-called ‘MD5 Encryption’ security of Worldpay, with configurable fields. It also implement the DNS based checking of response callbacks.
It uses C_Parameters internally for passing cart information back, this uses a SHA-based HMAC for verification.
This package doesn’t yet support the \(callbackPW\) parameter, patches to add this would be very welcome.
The following parameters should be set:
- A string containing your instance ID, such as ‘12345’
- A boolean to determine test mode
- The string entered in the MD5 field of WorldPay’s console, or None
- A tuple of field names, such as (‘instId’, ‘cartId’, ‘amount’, ‘currency’), to use with the MD5 Secret
- A string pointing to the key in Request.META that contains the IP of the request’s origin. Usually either \(REMOTE_ADDR\) or \(HTTP_X_FORWARDED_FOR\).
Worldpay’s recommended authentication of requests is based on multiple DNS lookups. Please be sure you have a working and reliable DNS setup before using this package. Patches to make this lookup optional and to add the \(CallbackPW\) alternative would be welcome.
You also need the dynamic callback response parameter to be enabled. Currently there are two callbacks, a fail and a success callback. If these two were integrated this requirement could be dropped.
The package is released under the New BSD license.
Please let @matthewwilkes know if you use this package, feedback would be very useful. Pull requests are very much welcome, please don’t hesitate to send them. If they’re not attended to quickly, ping \(@matthewwilkes\) on twitter or GitHub.
Having problems or got a question?
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|django_oscar_worldpay-1.3-py2.py3-none-any.whl (16.5 kB) Copy SHA256 Checksum SHA256||2.7||Wheel||Mar 9, 2016|