omise / omise-php

Omise PHP library
https://docs.opn.ooo
MIT License
67 stars 41 forks source link

api version #72

Closed peskoe closed 6 years ago

peskoe commented 6 years ago

when i use OmiseSource::create(); require_once dirname(FILE).'/obj/OmiseObject.php'; require_once dirname(FILE).'/../exception/OmiseExceptions.php'; define('OMISE_PHP_LIB_VERSION', '2.9.0'); define('OMISE_API_URL', 'https://api.omise.co/'); define('OMISE_VAULT_URL', 'https://vault.omise.co/'); class OmiseApiResource extends OmiseObject

you are using api version which does not support this operation

guzzilar commented 6 years ago

@peskoe To use Source API, your Omise account must use the latest Omise API version (2017-11-02).

You can check the API version that your Omise account is currently using at: https://dashboard.omise.co/api-version/edit

screen shot 2561-02-07 at 10 36 03

Note that updating API version may cause to malfunction application of your current implementation. Please test it carefully 😃 _(in that case, you may want to use the previous version which can be achieved by defining Omise API Version in your code using: define('OMISE_API_VERSION', '2015-11-17');)_

guzzilar commented 6 years ago

@peskoe I'm going to close this ticket, hope everything went well now. Feel free to create a ticket if you have any more questions. 😃