Update stripe.php

This commit is contained in:
ptibogxiv 2019-05-02 13:38:47 +02:00 committed by GitHub
parent b2d54662a1
commit 4a83036a8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
/* Copyright (C) 2017 Alexandre Spangaro <aspangaro@open-dsi.fr> /* Copyright (C) 2017 Alexandre Spangaro <aspangaro@open-dsi.fr>
* Copyright (C) 2017 Olivier Geffroy <jeff@jeffinfo.com> * Copyright (C) 2017 Olivier Geffroy <jeff@jeffinfo.com>
* Copyright (C) 2017 Saasprov <saasprov@gmail.com> * Copyright (C) 2017 Saasprov <saasprov@gmail.com>
* Copyright (C) 2018 Thibault FOUCART <support@ptibogxiv.net> * Copyright (C) 2018-2019 Thibault FOUCART <support@ptibogxiv.net>
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr> * Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@ -221,7 +221,7 @@ if (empty($conf->stripeconnect->enabled))
$endpoint->disabled = false; $endpoint->disabled = false;
} }
} }
$endpoint->url = dol_buildpath('/public/stripe/ipn.php?test', 3); $endpoint->url = dol_buildpath('/public/stripe/ipn.php?test', 2);
$endpoint->save(); $endpoint->save();
if ($endpoint->status == 'enabled') if ($endpoint->status == 'enabled')
{ {
@ -294,7 +294,7 @@ if (empty($conf->stripeconnect->enabled))
$endpoint->disabled = false; $endpoint->disabled = false;
} }
} }
$endpoint->url = dol_buildpath('/public/stripe/ipn.php', 3); $endpoint->url = dol_buildpath('/public/stripe/ipn.php', 2);
$endpoint->save(); $endpoint->save();
if ($endpoint->status == 'enabled') if ($endpoint->status == 'enabled')
{ {