Ignore:
Timestamp:
2 Apr 2024, 20:40:16 (9 months ago)
Author:
Henrik Bettermann
Message:

Implement Credo payments.

Location:
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/etranzact/browser.py

    r17545 r17731  
    2828    payoutlet_module_activated)
    2929from kofacustom.nigeria.etranzact.payoutletwebservice  import NigeriaPaymentDataWebservice
     30from kofacustom.nigeria.etranzact.credobrowser  import (
     31    CredoPageStudent, CredoPageApplicant,
     32    CredoVerifyPaymentStatusPageStudent, CredoVerifyPaymentStatusPageApplicant)
    3033
    3134# Temporarily we can use the test portal like in kofacustom.nigeria
     
    314317        'JUPEB_REGISTRATION_FEE': ('jupeb_reg',),
    315318         }
     319
     320# Credo customizations
     321
     322SECRET_API_KEY = "0PRI0500LB11cBSSLcW0DcW1BcWgmf45"
     323API_PUBLIC_KEY = "0PUB0500wuoOe9sdtSOLj5peqHKc8Q9W"
     324CREDO_HOST = "api.credodemo.com"
     325
     326class CustomCredoPageStudent(CredoPageStudent):
     327
     328    host = CREDO_HOST
     329    api_public_key = API_PUBLIC_KEY
     330
     331class CustomCredoPageApplicant(CredoPageApplicant):
     332
     333    host = CREDO_HOST
     334    api_public_key = API_PUBLIC_KEY
     335
     336class CustomCredoVerifyPaymentStatusPageStudent(CredoVerifyPaymentStatusPageStudent):
     337
     338    host = CREDO_HOST
     339    secret_api_key = SECRET_API_KEY
     340
     341class CustomCredoVerifyPaymentStatusPageApplicant(CredoVerifyPaymentStatusPageApplicant):
     342
     343    host = CREDO_HOST
     344    secret_api_key = SECRET_API_KEY
  • main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/interfaces.py

    r17661 r17731  
    9393        )
    9494
     95    etranzact_credo_enabled = schema.Bool(
     96        title = _(u'Etranzact Credo integration enabled'),
     97        default = False,
     98        )
     99
    95100    # Additional fees in custom package add here
    96101
Note: See TracChangeset for help on using the changeset viewer.