- url(r'^return/$', views.paypal_return, name='paypal_return'),
- url(r'^app-return/$', views.paypal_return, kwargs={'app': True}, name='paypal_app_return'),
- url(r'^cancel/$', views.paypal_cancel, name='paypal_cancel'),
+ path('return/<key>/', views.paypal_return, name='paypal_return'),
+ path('app-return/<key>/', views.paypal_return, kwargs={'app': True}, name='paypal_app_return'),
+ path('cancel/', views.paypal_cancel, name='paypal_cancel'),