https://github.com/iphytech/rave_pizza
https://github.com/iphytech/rave_pizza
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/iphytech/rave_pizza
- Owner: Iphytech
- Created: 2019-01-31T22:08:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-02T07:22:19.000Z (over 7 years ago)
- Last Synced: 2025-01-10T00:59:08.454Z (over 1 year ago)
- Language: PHP
- Size: 8.24 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rave_pizza
### Clone the repo
### cd to the project directory
Follow the guide here to step up Rave in your project
https://laravelrave.netlify.com/getting-started/installation.html#prerequisite
After setting up Rave in your project
##### Goto Vendor folder -> KingFalmez -> laravelrave -> src -> Rave.php
##### Then replace the initialize function with this
*****************************************************************
public function initialize($redirectURL)
{
$meta = array();
if (!empty($this->request->metadata)) {
$meta = json_decode($this->request->metadata, true);
}
$subAccounts = array();
if (!empty($this->request->subaccounts)) {
$subAccounts = json_decode($this->request->subaccounts, true);
}
$this->createCheckSum($redirectURL);
$this->transactionData = array_merge($this->transactionData, array('data-integrity_hash' => $this->integrityHash), array('meta' => $meta));
if (!empty($subAccounts)) {
$this->transactionData = array_merge($this->transactionData, array('subaccounts' => $subAccounts));
}
$json = json_encode($this->transactionData);
echo '';
echo '';
echo 'Proccessing...
';
echo '';
echo '';
echo 'document.addEventListener("DOMContentLoaded", function(event) {';
echo 'var data = JSON.parse(\'' . $json . '\');';
echo 'getpaidSetup(data);';
echo '});';
echo '';
echo '';
echo '';
return $json;
}