Skip to content

Commit c35d8dc

Browse files
authored
Update VaahStripe.md
1 parent 8db82da commit c35d8dc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Libraries/VaahStripe.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Add Facade in `config/app.php`:
3333
```
3434

3535
Add env configuration:
36-
```
36+
```env
3737
3838
...
3939
STRIPE_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
@@ -47,7 +47,7 @@ Reference url: https://stripe.com/docs/api
4747

4848
- Stripe One Time Payment
4949

50-
```
50+
```php
5151

5252
$customer => [
5353
'name' => 'xxxxxx',
@@ -106,9 +106,9 @@ Reference url: https://stripe.com/docs/api
106106
'state' => 'xxxxxx' // optional
107107
];
108108

109-
$price_id // Price define the unit cost, currency, and (optional) billing cycle for Subcription
109+
$price_id = 50; // Price define the unit cost, currency, and (optional) billing cycle for Subcription
110110

111-
$return_url // URL to redirect your customer back to after they authenticate or cancel their payment
111+
$return_url = ""; // URL to redirect your customer back to after they authenticate or cancel their payment
112112

113113
\VaahStripe::subscription($customer, $card, $address, $price_id, $return_url);
114114

@@ -151,11 +151,11 @@ Reference url: https://stripe.com/docs/api
151151
- Find Price
152152
```php
153153

154-
$product_id
154+
$product_id = 1;
155155

156-
$value //optional
156+
$value = ""; //optional
157157

158-
$by //optional default = amount amount/currency/interval
158+
$by = ""; //optional default = amount amount/currency/interval
159159

160160
\VaahStripe::getProductPrice($product_id, $value, $by);
161161

0 commit comments

Comments
 (0)