@@ -49,25 +49,25 @@ Reference url: https://stripe.com/docs/api
4949
5050``` php
5151
52- $customer => [
52+ $customer = [
5353 'name' => 'xxxxxx',
54545555 ];
5656
57- $card => [
57+ $card = [
5858 'number' => 'xxxx-xxxx-xxxx-xxxx',
5959 'exp_month' => '01', // 01-12
6060 'exp_year' => '2021',
6161 'cvc' => 'xxx'
6262 ];
6363
64- $package => [
64+ $package = [
6565 'currency' => 'usd', // usd / USD
6666 'amount' => '01',
6767 'description' => 'xxxxxx'
6868 ];
6969
70- $address => [
70+ $address = [
7171 'city' => 'xxxxxx', // optional
7272 'country' => 'xxxxxx',
7373 'line1' => 'xxxxxx',
@@ -76,7 +76,7 @@ Reference url: https://stripe.com/docs/api
7676 'state' => 'xxxxxx' // optional
7777 ];
7878
79- $return_url // URL to redirect your customer back to after they authenticate or cancel their payment
79+ $return_url = ""; // URL to redirect your customer back to after they authenticate or cancel their payment
8080
8181 \VaahStripe::pay($customer, $card, $package, $address, $return_url);
8282
@@ -85,19 +85,19 @@ Reference url: https://stripe.com/docs/api
8585- Stripe Subscription
8686``` php
8787
88- $customer => [
88+ $customer = [
8989 'name' => 'xxxxxx',
90909191 ];
9292
93- $card => [
93+ $card = [
9494 'number' => 'xxxx-xxxx-xxxx-xxxx',
9595 'exp_month' => '01', // 01-12
9696 'exp_year' => '2021',
9797 'cvc' => 'xxx'
9898 ];
9999
100- $address => [
100+ $address = [
101101 'city' => 'xxxxxx', // optional
102102 'country' => 'xxxxxx',
103103 'line1' => 'xxxxxx',
@@ -117,7 +117,7 @@ Reference url: https://stripe.com/docs/api
117117- Create Product
118118``` php
119119
120- $request => [
120+ $request = [
121121 'name' => 'xxxxxx',
122122 'description' => 'xxxxxx'
123123 ];
@@ -129,7 +129,7 @@ Reference url: https://stripe.com/docs/api
129129- Create Price
130130``` php
131131
132- $request => [
132+ $request = [
133133 'product_id' => 'xxxxxx',
134134 'currency' => 'usd',
135135 'amount' => '01',
0 commit comments