Ejegg has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/366472 )
Change subject: WIP use INITAMT for first payment ...................................................................... WIP use INITAMT for first payment Trying to get the first payment created synchronously AND linked to the subscription, but this still doesn't seem to do it. Not getting any TRANSACTIONID in the profile creation return Bug: T170478 Change-Id: I679ac81be488c297142149e9caf742e288e09b4d --- M paypal_gateway/express_checkout/config/var_map.yaml M paypal_gateway/express_checkout/paypal_express.adapter.php 2 files changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface refs/changes/72/366472/1 diff --git a/paypal_gateway/express_checkout/config/var_map.yaml b/paypal_gateway/express_checkout/config/var_map.yaml index 1b7032f..70cf536 100644 --- a/paypal_gateway/express_checkout/config/var_map.yaml +++ b/paypal_gateway/express_checkout/config/var_map.yaml @@ -1,4 +1,5 @@ AMT: amount +INITAMT: amount COUNTRYCODE: country CURRENCYCODE: currency EMAIL: email diff --git a/paypal_gateway/express_checkout/paypal_express.adapter.php b/paypal_gateway/express_checkout/paypal_express.adapter.php index 6eabf1b..1c69362 100644 --- a/paypal_gateway/express_checkout/paypal_express.adapter.php +++ b/paypal_gateway/express_checkout/paypal_express.adapter.php @@ -1,6 +1,7 @@ <?php use Psr\Log\LogLevel; +use SmashPig\Core\UtcDate; /** * PayPal Express Checkout name value pair integration @@ -320,6 +321,7 @@ 'BILLINGFREQUENCY', 'TOTALBILLINGCYCLES', 'MAXFAILEDPAYMENTS', + 'INITAMT', 'AMT', 'CURRENCYCODE', 'EMAIL', @@ -550,7 +552,7 @@ if ( $this->getData_Unstaged_Escaped( 'recurring' ) ) { // Set up recurring billing agreement. $this->addRequestData( array( - 'date' => time() + 'date' => UtcDate::getUtcTimestamp( '+1 month' ) ) ); $resultData = $this->do_transaction( 'CreateRecurringPaymentsProfile' ); if ( !$resultData->getCommunicationStatus() ) { -- To view, visit https://gerrit.wikimedia.org/r/366472 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I679ac81be488c297142149e9caf742e288e09b4d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/DonationInterface Gerrit-Branch: master Gerrit-Owner: Ejegg <ej...@ejegg.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits