SagePay payment gateway package for django-oscar Documentation

Similar documents
django-oscar-paypal Documentation

open-helpdesk Documentation

Python Project Example Documentation

django-telegram-bot Documentation

TPS Documentation. Release Thomas Roten

Python wrapper for Viscosity.app Documentation

Roman Numeral Converter Documentation

Django MFA Documentation

STPP Testing Published: 8 December 2017

chatterbot-weather Documentation

django-reinhardt Documentation

I2C LCD Documentation

Token System Integration & Protocol Guideline (Server & Direct)

PyCRC Documentation. Release 1.0

Aldryn Installer Documentation

google-search Documentation

django-cas Documentation

sainsmart Documentation

Django File Picker Documentation

Aircrack-ng python bindings Documentation

Python Schema Generator Documentation

Release Nicholas A. Del Grosso

django-users2 Documentation

Django Wordpress API Documentation

DJOAuth2 Documentation

Python simple arp table reader Documentation

django-private-chat Documentation

Google Domain Shared Contacts Client Documentation

Redis Timeseries Documentation

QuickBooks Payments For WooCommerce : Introduction: Installation: Requirements:

Tangent MicroServices Documentation

Simple libtorrent streaming module Documentation

django-idioticon Documentation

Sage Pay Form Integration and Protocol Guidelines Published: 27/08/2015

Sage Pay Form Integration and Protocol Guidelines Published: 05/01/2015

Big Fish ecommerce. BF Admin Module Payment Settings.doc

Django File Picker Documentation

MySagePay USER GUIDE

Python AutoTask Web Services Documentation

Trunk Player Documentation

smartfilesorter Documentation

django-konfera Documentation

e24paymentpipe Documentation

wagtail-robots Documentation

Python State Machine Documentation

Simple Binary Search Tree Documentation

Django IPRestrict Documentation

MasterPass Guide. Business Gateway. V1.1 February Use this guide to:

New learner registration form - RQF

CASHNet. Instructions for Students

django CMS Export Objects Documentation

WordPress WooCommerce plugin. Merchant Integration Manual

django-embed-video Documentation

New learner registration form - RQF

DNS Zone Test Documentation

2CHECKOUT PLUG-IN USER GUIDE

doconv Documentation Release Jacob Mourelos

Magento Extension User Guide: Web Services Version 3.6.1

Poulpe Documentation. Release Edouard Klein

MySagePay User Guide

MapEntity Documentation

django-embed-video Documentation

Pulp Python Support Documentation

Django-frontend-notification Documentation

PagSeguro Payment. User Guide

Game Server Manager Documentation

Release Fulfil.IO Inc.

OpenUpgrade Library Documentation

Mantis STIX Importer Documentation

nacelle Documentation

Gunnery Documentation

Django-CSP Documentation

dj-libcloud Documentation

Djam Documentation. Release Participatory Culture Foundation

Django PAM Documentation

AnyDo API Python Documentation

django-stored-messages Documentation

django-session-security Documentation

django-messages Documentation

Merchant Portal User Guide

VIRTUAL TERMINAL GUIDE

XML API Integration Guide

PayPlug. The payment solution that increases your sales PAYPLUG EXTENSION FOR MAGENTO V1

TailorDev Contact Documentation

INQUIRY FORM. This service is for customers with hearing and speech disabilities. We will not reply to any other inquiries made through this form.

Pykemon Documentation

Magento 2 Community / Enterprise Plugin

neo4django Documentation

Magento Extension User Guide: Payment Pages. This document explains how to install the official Secure Trading extension on your Magento store.

django cms Documentation

CyberSource Global Payment Management for Magento 2

django-dynamic-db-router Documentation

Release Ralph Offinger

django-password-reset Documentation

django-bootstrap3 Documentation

pydrill Documentation

Sage Pay Direct Integration and Protocol Guidelines Published: 13/05/2015

django-mama-cas Documentation

django-oscar Documentation

django simple pagination Documentation

Transcription:

SagePay payment gateway package for django-oscar Documentation Release 0.1.1 Glyn Jackson May 18, 2017

Contents 1 Installation and Configuration Guide 3 1.1 Installing Package............................................ 3 1.2 Configuration Settings.......................................... 4 1.3 Integration into checkout......................................... 4 2 Testing in Sandbox 5 2.1 Sandbox Installation........................................... 5 2.2 SagePay Test Credit Card Numbers................................... 5 3 Checkout Mode Banner 7 3.1 Adding the Checkout Banner...................................... 7 4 Indices and tables 9 i

ii

SagePay payment gateway package for django-oscar Documentation, Release 0.1.1 This package provides integration between django-oscar 0.6 or above and SagePay Direct payment gateway. This project is a work in progress and still in development. A direct integration enables you to collect your customers payment information on your own secure servers and securely pass card details across to SagePay to carry out authorisation and store them safely. This means that you can completely tailor the payment process to suit your business requirements. Note: To use SagePay Direct method you will need a 128-bit SSL certificate to secure your payment pages. Note: There is currently no support for form or server integrations. Contents: Contents 1

SagePay payment gateway package for django-oscar Documentation, Release 0.1.1 2 Contents

CHAPTER 1 Installation and Configuration Guide Installing Package To get the latest stable release from PyPi: $ pip install django-oscar-sagepay To get the latest commit from GitHub: $ pip install -e git+git://https://github.com/sparky300/django-oscar-sagepay.git #egg=sagepay Add sagepay to your INSTALLED_APPS: INSTALLED_APPS = (..., 'sagepay', ) Add the sagepay URLs to your urls.py: urlpatterns = patterns('',... url(r'^sagepay/', include('sagepay.urls')), ) Then migrate your database:./manage.py migrate sagepay 3

SagePay payment gateway package for django-oscar Documentation, Release 0.1.1 Configuration Settings In order to test your integration first create a Sage Pay Simulator Account. Once this has been created you will be given the following... Vendor Name User Name Password Add the settings from the details you were given: SAGEPAY_VENDOR = 'YOUR_VENDOR_NAME' SAGEPAY_PASSWORD = 'YOUR_PASSWORD' SAGEPAY_CURRENCY = 'GBP' SAGEPAY_VPS_PROTOCOL = '2.23' # Options are Live, Test and Simulator SAGEPAY_MODE = 'Simulator' Note that both currency and protocol are optional settings, if not set defaults will be used. Integration into checkout You will first need to create a local version of Oscar s checkout app. See Oscar s documentation on how to create a local version. You ll then need to use a subclass of sagepay.views.sagepaydetailsview within your own checkout views.: from sagepay.views import SagePayDetailsView class PaymentDetailsView(SagePayDetailsView): pass SagePayDetailsView is actually a subclass of Oscar s own oscar.apps.checkout.views.paymentdetailsview class. 4 Chapter 1. Installation and Configuration Guide

CHAPTER 2 Testing in Sandbox Sandbox Installation At the time of writing this django-oscar does not have a pip install for version 0.6 or above. Because of this I have removed django-oscar from the setup.py list of requirements. You will need to first install Oscar 0.6 directly from github i.e. git clone git@github.com:tangentlabs/django-oscar.git. To run the plugin in sandbox mode please perform the following steps: $ virtualenv django-env $ source django-env/bin/activate $ make sandbox $ sandbox/manage.py runserver $ make clean SagePay Test Credit Card Numbers This is a list of the SagePay test credit card numbers you can use to test transactions in SagePay Direct when in test and simulator mode. There are many different test credit card numbers available to use with the SagePay test server and at each stage you must ensure you enter the numbers and other details required correctly - failure to do so will return a Not Matched message. Visa - 4929000000006 Visa Delta (Debit) - 4462000000000003 Visa Electron UK Debit - 4917300000000008 Mastercard - 5404000000000001 UK Maestro - 5641820000000005 International Maestro - 300000000000000004 5

SagePay payment gateway package for django-oscar Documentation, Release 0.1.1 American Express - 374200000000004 Japan Credit Bureau (JCB) - 3569990000000009 Diners Club - 36000000000008 Laser Cards - 6304990000000000044 Please note that these Sage Pay test card numbers cannot be used on the live server, where a real debit or credit card must be used to put through a test transaction. Expiry Date: any date in the future CV2: 123 Billing Address: 88 (you only have to use this on the first line) Billing Postcode: 412 3D Secure Password: password (not used in version 0.1 of django-oscar-sagepay) 6 Chapter 2. Testing in Sandbox

CHAPTER 3 Checkout Mode Banner django-oscar-sagepay ships with an optional custom tag that displays a banner dictating what checkout mode you are running. For example, if you are running in simulator mode i.e. SAGEPAY_MODE = 'Simulator' a message banner could be displayed on the payment details view. Adding the Checkout Banner The banner is not installed by default and is entirely optional. To add the checkout banner simply add the tage to the required view: {% load checkout_mode_tag %} {{ bankcard_form.as_table }} Another example would be to add the custom tag the payment details template: {% load checkout_mode_tag %} {% block payment_details_content %} {% banner %} <form action="{% url 'checkout:preview' %}" class="form-stacked" method="post"> {% csrf_token %} {{ bankcard_form.as_table }} </form> {% endblock %} 7

SagePay payment gateway package for django-oscar Documentation, Release 0.1.1 8 Chapter 3. Checkout Mode Banner

CHAPTER 4 Indices and tables genindex modindex search 9