���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/zhaagvlk/web.zhaap.com/vendor__1b5d5ff/midtrans/midtrans-php/tests/utility/MtFixture.php
���ѧ٧ѧ�
<?php namespace Midtrans\utility; class MtFixture { protected static function readFixture($filename) { $charge_json = file_get_contents(__DIR__ . '/fixture/' . $filename); $charge_template_params = json_decode($charge_json, true); $charge_template_params['transaction_details']['order_id'] = rand(); return $charge_template_params; } } class MtChargeFixture extends MtFixture { public static function build($payment_type, $payment_data = null) { $charge_params = self::readFixture('mt_charge.json'); if (!is_null($payment_type)) { $charge_params['payment_type'] = $payment_type; } if (!is_null($payment_data)) { $charge_params[$payment_type] = $payment_data; } return $charge_params; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�