我正在使用 django-meerchant 进行贝宝付款http://readthedocs.org/docs/django-merchant/en/latest/offsite/paypal.html ...
我的观点有这个代码:
pay_pal = get_integration("pay_pal")
pay_pal.add_fields({
"business": client.paypal_id,
"item_name": product.name,
"invoice": inst.trans_code,
"notify_url": settings.BASE_DNS + str(client.id) + '/book/'+str(inst.id) +'/success/?booksaved=1',
"return_url": settings.BASE_DNS + str(client.id) + '/book/'+str(inst.id) +'/success/?booksaved=1',
"cancel_return": settings.BASE_DNS + str(client.id) + '/?booksaved=0',
"amount": inst.book_charged})
return render_to_response("pay_pay.html", {"obj": pay_pal, "product": product.name, "amount": inst.totalcost},context_instance=RequestContext(request))
我的模板 pay_pay.html
{% extends "main_base_bookingpage.html" %}
{% load billing_tags %}
{% block content %}
Required Parameters from the view
<ul>
<li> item_name : {{ product }}</li>
<li> amount : {{ amount }}</li>
</ul>
{% paypal obj %}
{% endblock %}
我的问题是如何更改它以使其更改为 paypal 网站而不是 sandbox.paypal 网站?
提前致谢...