Skip to content

Commit f1ee9cc

Browse files
authored
Merge pull request #13 from CHIPAsia/fix/logos
Fix logo not appearing for get payment method
2 parents 94eb6c4 + 66e9679 commit f1ee9cc

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

lib/Model/PaymentMethods.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ class PaymentMethods implements \JsonSerializable {
3131
* @var string[]
3232
*/
3333
public $card_methods;
34+
35+
/**
36+
*
37+
* @var array
38+
*/
39+
public $logos;
3440

3541
#[\ReturnTypeWillChange]
3642
public function jsonSerialize() {

lib/Traits/Api/PaymentMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ trait PaymentMethod
1111
* @param string $currency
1212
* @return \Chip\Model\PaymentMethods
1313
*/
14-
public function getPaymentMethods(string $currency = 'EUR'): ModelPaymentMethods
14+
public function getPaymentMethods(string $currency = 'MYR'): ModelPaymentMethods
1515
{
1616
return $this->mapper->map($this->request('GET', 'payment_methods/', [
1717
'query' => [

lib/Traits/Api/Purchase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function releasePurchase(string $purchaseId): ModelPurchase
5454
* @param int $amount
5555
* @return \Chip\Model\Purchase
5656
*/
57-
public function capturePurchase(string $purchaseId, int $amount = null): ModelPurchase
57+
public function capturePurchase(string $purchaseId, ?int $amount = null): ModelPurchase
5858
{
5959
$options = [];
6060
if ($amount !== null) {
@@ -96,7 +96,7 @@ public function deleteRecurringToken(string $purchaseId): ModelPurchase
9696
* @param int $amount
9797
* @return \Chip\Model\Purchase
9898
*/
99-
public function refundPurchase(string $purchaseId, int $amount = null): ModelPurchase
99+
public function refundPurchase(string $purchaseId, ?int $amount = null): ModelPurchase
100100
{
101101
$options = [];
102102
if ($amount !== null) {
@@ -113,7 +113,7 @@ public function refundPurchase(string $purchaseId, int $amount = null): ModelPur
113113
* @param int $utcTimestamp
114114
* @return \Chip\Model\Purchase
115115
*/
116-
public function markAsPaid(string $purchaseId, int $utcTimestamp = null): ModelPurchase
116+
public function markAsPaid(string $purchaseId, ?int $utcTimestamp = null): ModelPurchase
117117
{
118118
$options = [];
119119
if ($utcTimestamp !== null) {

0 commit comments

Comments
 (0)