Ignore:
Timestamp:
26 Dec 2022, 08:13:49 (23 months ago)
Author:
Henrik Bettermann
Message:

Ease customization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/branches/uli-paypal/src/kofacustom/nigeria/paypal/rest.py

    r17239 r17241  
    8383        json_data["payment_source"]["paypal"][
    8484                "experience_context"]["notify_url"] = notify_url
    85     response = requests.post(
    86             'https://api-m.sandbox.paypal.com/v2/checkout/orders',
     85    config = getUtility(IPaypalConfig)
     86    url = "%s/v2/checkout/orders" % PAYPAL_REST_URLS[config['mode']]
     87    response = requests.post(url,
    8788            headers=headers, json=json_data)
    8889    try:
Note: See TracChangeset for help on using the changeset viewer.