Fix stripe off_session set/unset
This commit is contained in:
parent
9b6b1e055c
commit
ae2b61d5ef
@ -428,11 +428,11 @@ class Stripe extends CommonObject
|
|||||||
// payment_method =
|
// payment_method =
|
||||||
// payment_method_types = array('card')
|
// payment_method_types = array('card')
|
||||||
//var_dump($dataforintent);
|
//var_dump($dataforintent);
|
||||||
if ($off_session)
|
if ($off_session)
|
||||||
{
|
{
|
||||||
unset($dataforintent['setup_future_usage']);
|
unset($dataforintent['setup_future_usage']);
|
||||||
$dataforintent["off_session"] = true;
|
$dataforintent["setup_future_usage"] = "off_session";
|
||||||
}
|
}
|
||||||
if (!is_null($payment_method))
|
if (!is_null($payment_method))
|
||||||
{
|
{
|
||||||
$dataforintent["payment_method"] = $payment_method;
|
$dataforintent["payment_method"] = $payment_method;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user