2017-07-07 4 views
0

Ich habe viele Leute mit der gleichen Frage gesehen und keine der Antworten löst mein Problem. Ich mache einen Verkauf mit der Paypal .Net SDK. In meinem Verkauf verwende ich this code und es funktioniert und der Prozess ist erfolgreich abgeschlossen. Dann habe ich meinen Erfolg Seite ausführen ich die Zahlung wie folgt aus:Paypal Rest API löst keine Webhooks aus

public ActionResult Success(string paymentId, string token, string PayerID) 
{ 

    var config = ConfigManager.Instance.GetProperties(); 
    var accessToken = new OAuthTokenCredential(config).GetAccessToken(); 
    var apiContext = new APIContext(accessToken); 
    apiContext.Config = config; 

    var paymentExecution = new PaymentExecution() { payer_id = PayerID }; 
    var payment = new Payment() { id = paymentId }; 

    // Execute the payment. 
    var executedPayment = payment.Execute(apiContext, paymentExecution); 

    return View(); 

} 

Dieser Code ohne Probleme ausgeführt wird.

Mein einziges Problem ist, dass mein Webhook nie ausgelöst wird. Ich habe den Webhook im Paypal-Entwickler-Dashboard mit allen Ereignissen erstellt. Wenn ich mit dem Webhook-Simulator teste, wird es ausgelöst, aber wenn ich den normalen Prozess mache, tut es das nie.

Was mache ich falsch?

Danke für jede Hilfe.

+0

Im Live-Modus wird der Webhook ausgelöst –

Antwort

Verwandte Themen