私のコードはC#で書かれていますが、私はPaypal APIを使用しています。その後、私は、顧客からの支払いを作っています最初の時間のために私がコードをデバッグし、エクスプレスチェックアウトアドレスを受け付けておりますリンクPaypal ApiはExpress Checkoutへのリダイレクトではなく、初回の支払いは初めてです。
を持つ古いペイパルページにリダイレクトされますが、そのペイパルのページにリダイレクトしますが、私は同じアカウントで支払いをセコントにしてもうまく動作します。しかし、新しいユーザーとの初めてのは
はここに私のPayPalコード
if (string.IsNullOrEmpty(token1))
{
// Need to be corrected.
DateTime date = DateTime.Now;
Agreement agreement = this.oService.CreateBillingAgreement(apiContext1, Plans1, UserID, date, systemdate).Create(apiContext1);
List<Links>.Enumerator enumerator = agreement.links.GetEnumerator();
while (enumerator.MoveNext())
{
Links current = enumerator.Current;
if (current.rel.ToLower().Trim().Equals("approval_url"))
url1 = current.href;
}
this.Session.Add(name1, (object)agreement.token);
//this.Session.Add(name1, "EC-3LA67769U69944606");
////token1 = "EC-3LA67769U69944606";
this.Session["PlanId"] = (object)agreement.plan.id;
return (ActionResult)this.Redirect(url1);
}
私はこの同じ問題を抱えていますが、javascript apiにあります。 – Noitidart