Package: django-oscar-asiapay
Payment integration of AsiaPay’s PayDollar.InstallationPrerequisites:Djangodjango-oscarIf you want to install the latest stable release from PyPi:$ pip install django-oscar-asiapayIf you feel adventurous and want to install the latest commit from GitHub:$ pip install -e git://github.com/bitmazk/django-oscar-asiapay.git#egg=asiapayAdddjango-oscar-asiapayto yourINSTALLED_APPS:INSTALLED_APPS = (
    ...,
    'oscar',
    'asiapay',
)Hook this app into yoururls.py:urlpatterns = patterns('',
    ...
    url(r'^asiapay/', include('asiapay.urls')),
)Run the South migrations:./manage.py migrate asiapayUsagePlease make sure you have installeddjango-oscar(up and running).
You can easily customize oscar by overwriting its apps. Please check oscar’s
docs if you don’t know what I’m talking about.To use AsiaPay please check the directoryoscar_integration_example.Basically theOscarPaymentDetailsViewhas been overwritten, so the user
will be re-directed to AsiaPay after confirming the checkout. We’ve customized
thepreview.htmltemplate:<form method="post" action="{{ asiapay_url }}">
        {% csrf_token %}
        <input type="hidden" name="merchantId" value="{{ merchant_id }}">
        <input type="hidden" name="currCode" value="{{ currency_code }}">
        <input type="hidden" name="orderRef" value="{{ order_number }}">
        <input type="hidden" name="amount" value="{{ order_total.incl_tax }}">
        <input type="hidden" name="successUrl" value="{{ success_url }}">
        <input type="hidden" name="failUrl" value="{{ fail_url }}">
        <input type="hidden" name="errorUrl" value="{{ error_url }}">
        <input type="hidden" name="lang" value="{{ asiapay_lang }}">
        <input type="hidden" name="payType" value="{{ asiapay_paytype }}">
        <img src="https://raw.githubusercontent.com/bitmazk/django-oscar-asiapay/master/payv_logo.gif" alt="{% trans "AsiaPay" %}" />
        <button id='place-order' type="submit" class="btn btn-primary btn-block js-disable-on-click" data-loading-text="{% trans "Sending..." %}">{% trans "Submit" %}</button>
</form>SettingsASIAPAY_PAYDOLLAR_URLURL to connect to AsiaPay. Testing url:https://test.paydollar.com/b2cDemo/eng/payment/payForm.jspProduction url:https://www.paydollar.com/b2c2/eng/payment/payForm.jspASIAPAY_CURRENCY_CODEDefault: ‘702’Currency you want to use. Please check the PayDollar Integration Guide.ASIAPAY_LANGUAGEDefault: ‘E’Language of the payment page.‘C’: Traditional Chinese‘E’: English‘F’: French‘G’: German‘J’: Japanese‘R’: Russian‘S’: Spanish‘T’: Thai‘V’: Vietnamese‘X’: Simplified ChineseASIAPAY_LOCALTEST_URLUse this setting to test a response from AsiaPay locally. We can recommendngrokto mask localhost.ASIAPAY_CALLBACK_HTTPSDefault: TrueUsehttps(True) orhttp(False) to construct reponse urls.ASIAPAY_PAYTYPEDefault: ‘N’Paytype you want to use. Please check the PayDollar Integration Guide.ASIAPAY_SUCCESS_REDIRECTDefault: reverse(‘checkout:thank-you’)URL to redirect to after successful transaction. Use for example:ASIAPAY_SUCCESS_REDIRECT = '/'or:ASIAPAY_SUCCESS_REDIRECT = reverse_lazy('your_url_name')ASIAPAY_FAILURE_REDIRECTDefault: reverse(‘basket:summary’)URL to redirect to after failed transaction. Use for example:ASIAPAY_SUCCESS_REDIRECT = '/'or:ASIAPAY_SUCCESS_REDIRECT = reverse_lazy('your_url_name')RoadmapCheck the issue tracker on github for milestones and features to come.