-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
➕ implements payment with multi methods
- Loading branch information
1 parent
5fdd75f
commit 5a65883
Showing
70 changed files
with
5,645 additions
and
167 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
/** | ||
* Class CreateBilletCreditCardDataProviderInterface | ||
* | ||
* @author MundiPagg Embeddables Team <[email protected]> | ||
* @copyright 2017 MundiPagg (http://www.mundipagg.com) | ||
* @license http://www.mundipagg.com Copyright | ||
* | ||
* @link http://www.mundipagg.com | ||
*/ | ||
|
||
namespace MundiPagg\MundiPagg\Api; | ||
|
||
|
||
interface TwoCreditCardRequestDataProviderInterface extends BaseRequestDataProviderInterface | ||
{ | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getInstallmentCount(); | ||
|
||
/** | ||
* @return int | ||
*/ | ||
public function getSaveCard(); | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getBilletCreditCardOperation(); | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getBilletCreditCardBrand(); | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getBilletCreditCardNumber(); | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getExpMonth(); | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getExpYear(); | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getHolderName(); | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getSecurityCode(); | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getIsOneDollarAuthEnabled(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?php | ||
/** | ||
* Class Billet | ||
* | ||
* @author Webjump Core Team <[email protected]> | ||
* @copyright 2016 Webjump (http://www.webjump.com.br) | ||
* @license http://www.webjump.com.br Copyright | ||
* | ||
* @link http://www.webjump.com.br | ||
*/ | ||
|
||
namespace MundiPagg\MundiPagg\Block\Payment\Info; | ||
|
||
use Magento\Payment\Block\Info\Cc; | ||
|
||
class TwoCreditCard extends Cc | ||
{ | ||
const TEMPLATE = 'MundiPagg_MundiPagg::info/twoCreditCard.phtml'; | ||
|
||
public function _construct() | ||
{ | ||
$this->setTemplate(self::TEMPLATE); | ||
} | ||
|
||
public function getCcType() | ||
{ | ||
return $this->getCcTypeName(); | ||
} | ||
|
||
public function getCardNumber() | ||
{ | ||
return '**** **** **** ' . $this->getInfo()->getCcLast4(); | ||
} | ||
|
||
public function getTitle() | ||
{ | ||
return $this->getInfo()->getAdditionalInformation('method_title'); | ||
} | ||
|
||
public function getInstallments() | ||
{ | ||
return $this->getInfo()->getAdditionalInformation('cc_installments'); | ||
} | ||
|
||
public function getInstallmentsFirstCard() | ||
{ | ||
return $this->getInfo()->getAdditionalInformation('cc_installments_first'); | ||
} | ||
|
||
public function getCcTypeFirst() | ||
{ | ||
return $this->getInfo()->getAdditionalInformation('cc_type_first'); | ||
} | ||
|
||
public function getFirstCardAmount() | ||
{ | ||
return $this->getInfo()->getAdditionalInformation('cc_first_card_amount') + $this->getInfo()->getAdditionalInformation('cc_first_card_tax_amount'); | ||
} | ||
|
||
public function getFirstCardLast4() | ||
{ | ||
return '**** **** **** ' . $this->getInfo()->getAdditionalInformation('cc_last_4_first'); | ||
} | ||
|
||
public function getInstallmentsSecondCard() | ||
{ | ||
return $this->getInfo()->getAdditionalInformation('cc_installments_second'); | ||
} | ||
|
||
public function getCcTypeSecond() | ||
{ | ||
return $this->getInfo()->getAdditionalInformation('cc_type_second'); | ||
} | ||
|
||
public function getSecondCardAmount() | ||
{ | ||
return $this->getInfo()->getAdditionalInformation('cc_second_card_amount') + $this->getInfo()->getAdditionalInformation('cc_second_card_tax_amount'); | ||
} | ||
|
||
public function getSecondCardLast4() | ||
{ | ||
return '**** **** **** ' . $this->getInfo()->getAdditionalInformation('cc_last_4_second'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.