Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tonylampada committed Aug 28, 2017
1 parent f58dcc4 commit 9a85a68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion djangoproject/core/utils/paypal_adapter.py
Expand Up @@ -40,14 +40,17 @@ def generate_paypal_payment(payment):
)
paykey = response['payKey']
msg = '''Paypal PAYREQUEST paykey=%s
returnUrl = [%s]
ipnNotificationUrl = [%s]
receivers = [%s]
response = [%s]''' % (paykey, str(receivers), str(response))
response = [%s]''' % (paykey, settings.PAYPAL_RETURN_URL, settings.PAYPAL_IPNNOTIFY_URL, str(receivers), str(response))
logger.info(msg)
payment.setPaykey(paykey)


def verify_ipn(data):
# prepares provided data set to inform PayPal we wish to validate the response
print
data["cmd"] = "_notify-validate"
params = urlencode(data)

Expand Down

0 comments on commit 9a85a68

Please sign in to comment.