Awight has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/311898

Change subject: Move postback-url key
......................................................................

Move postback-url key

Change-Id: I6d108ee8de47a48fc8f3b1b2c29dc205d541e44d
---
M PaymentProviders/PayPal/PayPalPaymentsAPI.php
M SmashPig.yaml
2 files changed, 5 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/SmashPig 
refs/changes/98/311898/1

diff --git a/PaymentProviders/PayPal/PayPalPaymentsAPI.php 
b/PaymentProviders/PayPal/PayPalPaymentsAPI.php
index 272e857..ec2c6c8 100644
--- a/PaymentProviders/PayPal/PayPalPaymentsAPI.php
+++ b/PaymentProviders/PayPal/PayPalPaymentsAPI.php
@@ -16,7 +16,7 @@
         */
        function validate( $post_fields ) {
                $url = Configuration::getDefaultConfig()
-                       ->val( 'endpoints/listener/postback-url' );
+                       ->val( 'postback-url' );
                $ch = curl_init();
                curl_setopt( $ch, CURLOPT_URL, $url );
                curl_setopt( $ch, CURLOPT_HEADER, 0 );
diff --git a/SmashPig.yaml b/SmashPig.yaml
index 94e65f1..fedca6a 100644
--- a/SmashPig.yaml
+++ b/SmashPig.yaml
@@ -358,9 +358,10 @@
     endpoints:
         listener:
             class: SmashPig\PaymentProviders\PayPal\Listener
-            # In production, override this entry with
-            # postback-url: https://ipnpb.paypal.com/cgi-bin/webscr
-            postback-url: https://ipnpb.sandbox.paypal.com/cgi-bin/webscr
+
+    # For testing, override with
+    # postback-url: https://ipnpb.sandbox.paypal.com/cgi-bin/webscr
+    postback-url: https://ipnpb.paypal.com/cgi-bin/webscr
 
     data-store:
         jobs-paypal:

-- 
To view, visit https://gerrit.wikimedia.org/r/311898
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6d108ee8de47a48fc8f3b1b2c29dc205d541e44d
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/SmashPig
Gerrit-Branch: master
Gerrit-Owner: Awight <awi...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to