Code Monkey home page Code Monkey logo

django-shop-postfinance's Introduction

django-shop-postfinance

This application is a postfinance backend for django-SHOP, or any other shop system implementing its shop interface.

Usage

Add this project to your INSTALLED_APPS, and add 'shop_postfinance.offsite_postfinance.OffsitePostfinanceBackend' to django-SHOP's SHOP_PAYMENT_BACKENDS setting.

Todo

Plenty of stuff is left to do! If you feel like giving a hand, please pick a task in the follwing list:

  • Add a model to store IPN results in the database in full.
  • Add a signal on_save() to this model, and only call shop.confirm_payment() from there.
  • Port the shop API to other shop systems, so they can also easily use this project as a backend. Examples include but are not limited to: plata, satchmo, lfs

Contributing

Feel free to post any comment or suggestion for this project on the django-shop mailing list or on #djanho-shop on freenode :)

django-shop-postfinance's People

Contributors

brutasse avatar chrisglass avatar gabejackson avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

django-shop-postfinance's Issues

Postfinance IPN not working for us. Why?

Hi @chrisglass et al.

We have tried to get the Postfinance IPN up and running. Basically Postfinance Payment works fine. We can reach the yellow screen and after simulating payments in the TEST environment using the test cards (eg. VISA 4111 **** **** 1111) provided and postfinance_return_successful_view is called correctly. Here a dump of the nginx logfile:

212.23.45.97 - - [06/Nov/2013:16:18:46 +0100] "GET /shop/pay/postfinance/success/?orderID=204140&currency=CHF&amount=34%2E5&PM=CreditCard&ACCEPTANCE=test123&STATUS=5&CARDNO=XXXXXXXXXXXX1111&ED=0115&CN=asd&TRXDATE=11%2F06%2F13&PAYID=25031690&NCERROR=0&BRAND=VISA&IPCTY=CH&CCCTY=US&ECI=12&CVCCheck=NO&AAVCheck=NO&VC=NO&IP=212%2E120%2E32%2E82&SHASIGN=91C1BB9ECB5BDXXX3886DA35358BF33716A940 HTTP/1.1" 302 5 "-" "Mozilla/3.0 (compatible; Indy Library)"
212.23.45.97 - - [06/Nov/2013:16:18:46 +0100] "GET /shop/checkout/thank_you/ 
212.35.124.164 - - [06/Nov/2013:16:27:57 +0100] "POST /shop/pay/postfinance/somethinghardtoguess/instantpaymentnotification/ HTTP/1.1" 403 2294 "-" "Mozilla/3.0 (compatible; Indy Library)"

The SHA-1 IN and OUT keys are set in the Postfinance Backoffice (both set to the same value) and as POSTFINANCE_SECRET_KEY in the project settings.

Now the big question: Why is this not working? Did we miss configured something? .. we never get a 'valid' payed order (no IPN records, products still kept in cart, etc.)

Shouldn't postfinance_ipn be called as well in postfinance_return_successful_view to be able to process the GET params.

Thanks in advance for any hint and or help.

Regards,

Philippe

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.