Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Mar 8, 2017
1 parent 3eb2f8c commit 5a42741
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
3 changes: 2 additions & 1 deletion Method.php
Expand Up @@ -19,10 +19,11 @@ function vatIsInteger() {return false;}

/**
* 2017-03-07
* https://mage2.pro/t/3355/2
* @override
* @see \Df\GingerPaymentsBase\Method::bankTransferId()
* @used-by \Df\GingerPaymentsBase\Method::optionT()
* @return bool
*/
protected function bankTransferId() {return GM::BANK_TRANSFER_G;}
protected function bankTransferId() {return 'sepa-debit-transfer';}
}
8 changes: 2 additions & 6 deletions Source/Option.php
@@ -1,20 +1,16 @@
<?php
namespace Dfe\GingerPayments\Source;
use GingerPayments\Payment\Order\Transaction\PaymentMethod as M;
// 2017-03-01
// [Ginger Payments] Available payment options: https://mage2.pro/t/3463
/** @method static Option s() */
final class Option extends \Df\GingerPaymentsBase\Source\Option {
/**
* 2017-03-01
* What is SOFORT and how does it work? https://mage2.pro/t/3425
* @override
* @see \Df\GingerPaymentsBase\Source\Option::mapExtra()
* @used-by \Df\GingerPaymentsBase\Source\Option::map()
* @return array(string => string)
*/
protected function mapExtra() {return [
// 2017-03-01
// What is SOFORT and how does it work? https://mage2.pro/t/3425
M::SOFORT => 'SOFORT'
];}
protected function mapExtra() {return ['sofort' => 'SOFORT'];}
}
2 changes: 1 addition & 1 deletion T/CreateOrder/BankTransfer.php
Expand Up @@ -10,5 +10,5 @@ final class BankTransfer extends \Df\GingerPaymentsBase\T\CreateOrder {
* @used-by \Df\GingerPaymentsBase\T\CreateOrder::t01_success()
* @return string
*/
protected function method() {return M::BANK_TRANSFER_G;}
protected function method() {return 'sepa-debit-transfer';}
}

0 comments on commit 5a42741

Please sign in to comment.