我想在付款結帳後支付paypal付款ID,執行付款,但我不知道該怎麼辦?如何在結帳後獲得付款ID PayPal
付款ID是在這裏被使用:
pymnt = new Payment();
pymnt.id = **PAYMENT_ID**;
PaymentExecution pymntExecution = new PaymentExecution();
pymntExecution.payer_id = context.Request.Params["PayerID"];
Payment executedPayment = pymnt.Execute(apiContext, pymntExecution);
context.Response.Write(JObject.Parse(executedPayment.ConvertToJson()).ToString(Formatting.Indented));
生成,但我怎麼能使請求執行?我不知道... – Severiano