PHP code example of se7enxweb / sevenx_payment_stripe
1. Go to this page and download the library: Download se7enxweb/sevenx_payment_stripe library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
se7enxweb / sevenx_payment_stripe example snippets
extension/sevenx_payment_stripe/
├── classes/
│ ├── ezcurlgateway.php Base cURL gateway (PHP 8 fork — see doc/EZCURLGATEWAY.md)
│ ├── sevenx_payment_stripegateway.php loadForm(): renders form or advances workflow
│ └── ezjscserverfunctionsstripejs.php eZJSCore endpoints — confirm (create PI) + verify (set status 1000)
├── modules/charge/
│ ├── module.php Registers 'charge' module views
│ ├── charge.php Fallback for ezjsc-stripe::confirm
│ ├── confirm.php Deprecated stub — redirects to /shop/checkout
│ └── verify.php Fallback for ezjsc-stripe::verify
├── design/standard/
│ ├── javascript/stripe-checkout.js Payment Element JS, confirmPayment() call
│ ├── stylesheets/checkout.css Checkout form styles
│ └── templates/workflow/eventtype/result/
│ └── stripe_form.tpl Checkout form template
├── settings/
│ └── stripe.ini.append.php SecretKey + DisplayHelp
├── composer.json
├── ezinfo.php
├── extension.xml
└── package.xml
ini
[Sevenx_Payment_Stripe_Settings]
# Both keys must come from the same Stripe account.
# Use sk_test_... / pk_test_... for development, sk_live_... / pk_live_... for production.
SecretKey=sk_test_...
PublishableKey=pk_test_...
# Display help text on the payment form (true/false)
DisplayHelp=false
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.