@loginValid
def alipayOrder(request):
    '\n    阿里支付，传入交易订单号，总金额\n    '
    order_number = request.GET.get('order_number')
    total = request.GET.get('total')
    alipay = AliPay(appid='2016101200667714', app_notify_url=None, app_private_key_string=alipay_private_key_string, alipay_public_key_string=alipay_public_key_string, sign_type='RSA2')
    order_string = alipay.api_alipay_trade_page_pay(out_trade_no=order_number, total_amount=str(total), subject='生鲜交易', return_url='http://127.0.0.1:8000/Buyer/pay_result/', notify_url='http://127.0.0.1:8000/Buyer/pay_result/')
    result = ('https://openapi.alipaydev.com/gateway.do?' + order_string)
    return HttpResponseRedirect(result)
阿里支付，传入交易订单号，总金额
@loginValid
def alipayOrder(request):
    '\n    \n    '
    order_number = request.GET.get('order_number')
    total = request.GET.get('total')
    alipay = AliPay(appid='2016101200667714', app_notify_url=None, app_private_key_string=alipay_private_key_string, alipay_public_key_string=alipay_public_key_string, sign_type='RSA2')
    order_string = alipay.api_alipay_trade_page_pay(out_trade_no=order_number, total_amount=str(total), subject='生鲜交易', return_url='http://127.0.0.1:8000/Buyer/pay_result/', notify_url='http://127.0.0.1:8000/Buyer/pay_result/')
    result = ('https://openapi.alipaydev.com/gateway.do?' + order_string)
    return HttpResponseRedirect(result)