| 1 | <?php |
||
| 11 | class Paymongo |
||
| 12 | { |
||
| 13 | use Request; |
||
| 14 | |||
| 15 | protected $method; |
||
| 16 | protected $apiUrl = ''; |
||
| 17 | protected $payload; |
||
| 18 | protected $returnModel = ''; |
||
| 19 | |||
| 20 | protected const BASE_API = 'https://api.paymongo.com/v1/'; |
||
| 21 | protected const ENPOINT_TOKEN = 'tokens/'; |
||
| 22 | protected const ENDPOINT_PAYMENTS = 'payments/'; |
||
| 23 | protected const ENPDPOINT_SOURCES = 'sources/'; |
||
| 24 | protected const ENDPOINT_WEBHOOKS = 'webhooks/'; |
||
| 25 | protected const SOURCE_GCASH = 'gcash'; |
||
| 26 | |||
| 27 | public function token() |
||
| 33 | |||
| 34 | public function payment() |
||
| 40 | |||
| 41 | public function source() |
||
| 47 | |||
| 48 | public function webhook() |
||
| 54 | } |
||
| 55 |