Explorar el Código

check for subscription id

pull/2/head
Saurabh hace 6 años
padre
commit
547863149c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      payments/payment_gateways/doctype/paypal_settings/paypal_settings.py

+ 1
- 1
payments/payment_gateways/doctype/paypal_settings/paypal_settings.py Ver fichero

@@ -293,7 +293,7 @@ def create_recurring_profile(token, payerid):
addons = data.get("addons")
subscription_details = data.get("subscription_details")

if data['subscription_id'] and addons:
if data.get('subscription_id') and addons:
updating = True
manage_recurring_payment_profile_status(data['subscription_id'], 'Cancel', params, url)



Cargando…
Cancelar
Guardar