Mepps has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/370656 )

Change subject: WIP Try out approvePayment
......................................................................

WIP Try out approvePayment

Change-Id: Ie91e806d63fdb5a06c37ece8f50f47ce4975a4ea
---
M ingenico_gateway/ingenico.adapter.php
1 file changed, 10 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface 
refs/changes/56/370656/1

diff --git a/ingenico_gateway/ingenico.adapter.php 
b/ingenico_gateway/ingenico.adapter.php
index 214fd49..2e4e175 100644
--- a/ingenico_gateway/ingenico.adapter.php
+++ b/ingenico_gateway/ingenico.adapter.php
@@ -114,6 +114,15 @@
                                'statusCode',
                        )
                );
+               
+               $this->transactions['approvePayment'] = array(
+                   'request' => array('paymentId'),
+            'response' => array(
+                'payment',
+                'status',
+                'statusOutput'
+            )
+        );
        }
 
        /**
@@ -207,7 +216,7 @@
 
                // FIXME: make sure we're processing the order ID we expect!
 
-               $response = $this->do_transaction( 'Confirm_CreditCard' );
+               $response = $this->do_transaction( 'approvePayment' );
                return PaymentResult::fromResults(
                        $response,
                        $this->getFinalStatus()

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie91e806d63fdb5a06c37ece8f50f47ce4975a4ea
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Mepps <me...@wikimedia.org>

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

Reply via email to