Integration with Worldpay payments for django-oscar
Project description
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.
Current status
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.
Security
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.
Configuration
The following parameters should be set:
- WORLDPAY_INSTANCE_ID
A string containing your instance ID, such as ‘12345’
- WORLDPAY_TEST_MODE
A boolean to determine test mode
- WORLDPAY_MD5_SECRET
The string entered in the MD5 field of WorldPay’s console, or None
- WORLDPAY_SIGNATURE_FIELDS
A tuple of field names, such as (‘instId’, ‘cartId’, ‘amount’, ‘currency’), to use with the MD5 Secret
- WORLDPAY_REMOTE_ADDRESS_HEADER
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.
Gotchas
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.
License
The package is released under the New BSD license.
Contributing
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.
Support
Having problems or got a question?
Have a look at the sandbox site as this is a sample Oscar project integrated with Worldpay. See the contributing guide within the docs for instructions on how to set up the sandbox locally.
Ping @matthewwilkes (or @django_oscar) with quick queries.
Ask more detailed questions on the Oscar mailing list: django-oscar@googlegroups.com
Use Github for submitting issues and pull requests.
Changelog
1.1
Fix a bug when phonenumber wasn’t set.
Remove some old PayPal references that were missed.
1.0
Initial release. Working integration of Worldpay and Oscar.
0.1
Skeleton of Worldpay integration, supporting making requests and receiving callbacks.
0.0
Forked from django-oscar-paypal 0.9.5
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django-oscar-worldpay-1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fecaa823bef23f49a5e4d6d6ad46bcf4955d60a7266added6c958e07a007107a |
|
MD5 | 5709fc2a7b4b18fc840523805184e380 |
|
BLAKE2b-256 | ca7c6e814aab0d85f8cb70f79d4c6560e39b9ef40f6b2998d575c571543a0a81 |
Hashes for django_oscar_worldpay-1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcdf72fdea0bc6d2a381cecd2e55dd633adb5c505988f8f5839e32a400c1b04f |
|
MD5 | ca1d412b8ffc9bbb1eb3494e03a36aaa |
|
BLAKE2b-256 | 05e7d0f2aa7208ede226f56be5fe5b3de64df2b4755bfc58c17f42cd34fa0743 |