Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for custom gateway urls #39

Merged

Conversation

jzaplet
Copy link
Contributor

@jzaplet jzaplet commented Aug 9, 2021

Přidána podpora pro úpravu OAUTH URL:

Takto vypadá klasický režim režim:

$gp = Gopay\Api::payments([
    'goid' => $merchant->getGopayGoId(),
    'clientId' => $merchant->getGopayClientId(),
    'clientSecret' => $merchant->getGopayClientSecret(),
    'scope' => TokenScope::ALL,
    'isProductionMode' => true
]);

Takto vypadá režim s vlasní URL:

$gp = Gopay\Api::payments([
    'goid' => $merchant->getGopayGoId(),
    'clientId' => $merchant->getGopayClientId(),
    'clientSecret' => $merchant->getGopayClientSecret(),
    'scope' => TokenScope::ALL,
    'gatewayUrl' => 'https://nejaka.alfa.beta.url.dev/'
]);

Pokud použijeme parametr gatewayUrl, tak parametr isProductionMode (který ovlivňuje výslednou URL) je nepovinný.
Lze používat oba režimy - buď s parametrem isProductionMode nebo s gatewayUrl.

@FSichinger
Copy link

Díky,

Dále z duvodu, ze podobnou vlastnost maji jíž veškerá ostatní sdk. v nasledujícím release bude isProductionMode oznacen jako deprecated a odstranen z dokumentace.

@FSichinger FSichinger merged commit 5bd8eb9 into gopaycommunity:master Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants