This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
-
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.
* feat(PPWP-377): unified calls * fix(PPWP-377): unified calls * fix(PPWP-377): unified calls * fix(PPWP-377): unified calls * fix(PPWP-377): unified calls * added payment places method * comments removed * refactored access token validation * fixed ternary if structure * fixed instantiation of access token * 🐛 Fix the PR cover checker when there is no test (#189) This fixes an issue that is workflow failure when the pull request does not contain tests and Added hotfix branch filter to check tests * feat(PPWP-421): paycash front-end * feat(PPWP-422): paycash admin * fix(helper): 🐛 fixed float to int convertion * feat(bin): ✨ new command sync with container * improv: init tests * improv: changing chmod command * build: 📦 new patch version of mercardo pago for magento 2 v3.12.3 * getMercadoPagoPaymentMethods testing * fix(ppwp-337): fixing exception testing * testing config provider and api * testing PaymentMethodsTicket * feat(ppwp-377): testing custom config provider * refactored constants * refactored model test classes * refactored helper test classes * added annotation for Code Coverage Ignore * fixed test variables * fixed html structure of ticket * feat(ppwp-377): adding metadata payment_option_id * fixing data tests * removed exception to access token * hotfix(PLUG-1533): fixing refund error handling * fixing pr coverage checker * testing pr coverage checker * fixing pr coverage checker * hotfix: fixed js - undefined variable * build: 📦 new minor version of mercardo pago for magento 2 v3.13.0 * build(v3.13.0): 📦 updated readme Co-authored-by: Gustavo Brito <[email protected]> Co-authored-by: sleaof <[email protected]> Co-authored-by: Douglas <[email protected]>
- Loading branch information
1 parent
b34ce87
commit db61907
Showing
32 changed files
with
2,289 additions
and
486 deletions.
There are no files selected for viewing
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
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,49 @@ | ||
<?php | ||
|
||
namespace MercadoPago\Core\Helper; | ||
|
||
class PaymentPlaces | ||
{ | ||
/** | ||
* @return array | ||
*/ | ||
public static function getPaymentPlaces($paymentId) | ||
{ | ||
$payment_places = [ | ||
"paycash" => [ | ||
[ | ||
"payment_option_id" => "7eleven", | ||
"name" => "7 Eleven", | ||
"status" => "active", | ||
"thumbnail" => "https://http2.mlstatic.com/storage/logos-api-admin/417ddb90-34ab-11e9-b8b8-15cad73057aa-s.png" | ||
], | ||
[ | ||
"payment_option_id" => "circlek", | ||
"name" => "Circle K", | ||
"status" => "active", | ||
"thumbnail" => "https://http2.mlstatic.com/storage/logos-api-admin/6f952c90-34ab-11e9-8357-f13e9b392369-s.png" | ||
], | ||
[ | ||
"payment_option_id" => "soriana", | ||
"name" => "Soriana", | ||
"status" => "active", | ||
"thumbnail" => "https://http2.mlstatic.com/storage/logos-api-admin/dac0bf10-01eb-11ec-ad92-052532916206-s.png" | ||
], | ||
[ | ||
"payment_option_id" => "extra", | ||
"name" => "Extra", | ||
"status" => "active", | ||
"thumbnail" => "https://http2.mlstatic.com/storage/logos-api-admin/9c8f26b0-34ab-11e9-b8b8-15cad73057aa-s.png" | ||
], | ||
[ | ||
"payment_option_id" => "calimax", | ||
"name" => "Calimax", | ||
"status" => "active", | ||
"thumbnail" => "https://http2.mlstatic.com/storage/logos-api-admin/52efa730-01ec-11ec-ba6b-c5f27048193b-s.png" | ||
] | ||
], | ||
]; | ||
|
||
return $payment_places[$paymentId] ?? []; | ||
} | ||
} |
Oops, something went wrong.