Skip to content

Commit

Permalink
including custom parameter in the new
Browse files Browse the repository at this point in the history
quick-checkout
  • Loading branch information
srexi committed Jul 18, 2020
1 parent 7e1a3a5 commit 4a740c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion inc/plugins/rexshop.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function rexshop_info()
"website" => "https://shop.rexdigital.group",
"author" => "RexDigitalGroup",
"authorsite" => "https://rexdigital.group",
"version" => "1.08",
"version" => "1.09",
"guid" => "",
"compatibility" => "18*,16*"
);
Expand Down Expand Up @@ -233,6 +233,10 @@ function rexshop_payment_page()

$products = rexshop_fetch_products();

$custom = base64_encode(serialize([
'uid' => (int) $mybb->user['uid'],
]));

$payments = '';
foreach ($products as $product) {
$options = '';
Expand All @@ -249,6 +253,7 @@ function rexshop_payment_page()
<div align="right" style="margin-right: 100px;">
<form method="POST" action="https://shop.rexdigital.group/checkout">
<input name="client_id" value="' . rexshop_regex_escape($mybb->settings['rexshop_client_id'], '/[^a-zA-Z0-9]/') . '" type="hidden">
<input name="custom" value="' . $custom . '" type="hidden">
<select style="width: 240px;" name="products[0][plan_id]">
' . $options . '
</select>
Expand Down

0 comments on commit 4a740c7

Please sign in to comment.