"; //exit; $queryinsert = mysql_query($q_insert); if ($afrekenbedrag != "" AND $qstring_array[3] != "bedankt") { include('phpconnect/MultiSafepay.combined.php'); include('phpconnect/MultiSafepay.config.php'); $msp = new MultiSafepay(); /* * Merchant Settings */ $msp->test = MSP_TEST_API; $msp->merchant['account_id'] = MSP_ACCOUNT_ID; $msp->merchant['site_id'] = MSP_SITE_ID; $msp->merchant['site_code'] = MSP_SITE_CODE; // $msp->merchant['notification_url'] = BASE_URL . 'notify.php?type=initial'; $msp->merchant['cancel_url'] = BASE_URL . 'gids-toevoegen/'; // optional automatic redirect back to the shop: $msp->merchant['redirect_url'] = BASE_URL . 'gids-toevoegen/bedankt/bedankt/'; /* * Customer Details */ $msp->customer['locale'] = 'nl'; $msp->customer['firstname'] = ''; $msp->customer['lastname'] = $naam; $msp->customer['zipcode'] = $postcode; $msp->customer['city'] = $plaatsloop; $msp->customer['country'] = 'NL'; $msp->customer['phone'] = ''; $msp->customer['email'] = $emailinzender; $msp->parseCustomerAddress(''); // or // $msp->customer['address1'] = 'Teststraat'; // $msp->customer['housenumber'] = '21'; /* * Transaction Details */ $msp->transaction['id'] = $postcode.$naam; // generally the shop's order ID is used here $msp->transaction['currency'] = 'EUR'; $msp->transaction['amount'] = $afrekenbedrag; // cents $msp->transaction['description'] = 'Order #' . $msp->transaction['id']; $msp->transaction['items'] = 'Opvallen Hardlopen.com loopgids '.$datum; // returns a payment url $url = $msp->startTransaction(); if ($msp->error){ echo "Error " . $msp->error_code . ": " . $msp->error; exit(); } // redirect header('Location: ' . $url); } // einde if afrekenbedrag ///////////////////////////////////////////////////////////// } //einde lus if fout == 0 } if (file_exists("2015/styles-templates/homepage.php")) { include("2015/styles-templates/homepage.php"); } if (file_exists("2015/instellingen-en-functies/database-close.php")) { include("2015/instellingen-en-functies/database-close.php"); } ?>