Changeset 13388


Ignore:
Timestamp:
4 Nov 2015, 11:13:30 (9 years ago)
Author:
Henrik Bettermann
Message:

Enable JSON requests for student payments.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/interswitch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py

    r13383 r13388  
    391391    grok.context(ICustomStudentOnlinePayment)
    392392    gateway_host = HOST
    393     gateway_url = URL
     393    gateway_url = '/paydirect/api/v1/gettransaction.json'
    394394    https = HTTPS
     395    mac = '9718FA00B0F5070B388A9896ADCED9B2FB02D30F71E12E68BDADC63F6852A3496FF97D8A0F9DA9F753B911A49BB09BB87B55FD02046BD325C74C46C0123CF023'
    395396
    396397    @property
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py

    r13385 r13388  
    2929#   If you enable this, please make sure the external services
    3030#   do exist really and are not bothered by being spammed by a test programme.
    31 EXTERNAL_TESTS = True
     31EXTERNAL_TESTS = False
    3232
    3333def external_test(func):
     
    321321        self.browser.getLink(self.value).click()
    322322        self.payment_url = self.browser.url
    323         # First we have open InterswitchPageStudent to set provider_amt
     323        # First we have to open InterswitchPageStudent to set provider_amt
    324324        # and gateway_amt
    325325        self.browser.open(self.payment_url + '/goto_interswitch')
     
    344344        payment.p_id = 'p4465649308559'
    345345        self.browser.open(self.payment_url + '/request_webservice')
    346         self.assertTrue('Callback amount does not match' in
     346        self.assertTrue('Unsuccessful callback: Amount Inconsistency' in
    347347                          self.browser.contents)
    348348        # The payment is now in state failed ...
     
    350350        # Let's replace the amount autorized with the amount of the
    351351        # live system payment
    352         payment.amount_auth = payment.r_amount_approved
     352        payment.amount_auth = 60250.0
    353353        self.browser.open(self.payment_url + '/request_webservice')
    354354        self.assertTrue('Successful payment' in
Note: See TracChangeset for help on using the changeset viewer.