namdevel / ovoid-API

OVO Api PHP Class [Unofficial]
https://packagist.org/packages/namdevel/ovoid-api
MIT License
44 stars 35 forks source link

#ask #25

Closed ashiapppppppp closed 2 years ago

ashiapppppppp commented 2 years ago

Bang saya mau tambahin fitur tapi kenapa selalu tidak ada response ya? Bahkan respon error atau gagal pun tidak nampak

public function TokenIDM($time) {

    $field = array(
        'time_local' => ''.$time.'',
        'merchant_id' => '3112063',
        'payment_mode' => 'OVO_CASH'
    );
    var_dump($this->headers());
    var_dump(json_encode($field));

    return self::request(self::AGW_API . '/voucher-service/v1/p2m', $field, $this->headers());
}

Screenshot_2022_0909_000147

Makasih banyak sebelumnya

namdevel commented 2 years ago

Feature apa itu kalo boleh tau

ashiapppppppp commented 2 years ago

Itu bang, kalo scan qris sebelah nya ada pembayaran indomaret, nah itu yg mau saya tambahkan

Request : {"time_local":"2022-08-23T03:09:04+07:00","merchant_id":"3112063","payment_mode":"OVO_CASH"}

Respon { "response_code": "OV00000", "response_version": "1", "response_message": "Success", "data": { "payment_mode": "OVO_CASH", "voucher": "3267953927", "expiry_time": "2022-08-22T20:11:04.50748128Z", "expiry_time_local": "2022-08-23T03:11:04+07:00", "metadata": { "duration_ms": 120000, "buffer_ms": 90000, "warning_threshold_ms": 30000, "voucher_display_type": "numbers" } } }