Skip to content

Commit

Permalink
major updations
Browse files Browse the repository at this point in the history
1 Composer razorpay version 2.0
2 removed old SDK
3 composer.json updated
  • Loading branch information
wontone18 committed Jan 5, 2025
1 parent 9b197d2 commit a036ca8
Show file tree
Hide file tree
Showing 213 changed files with 8 additions and 28,375 deletions.
9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,12 @@
}
],
"minimum-stability": "dev",
"require": {}
"require": {
"razorpay/razorpay": "^2.0"
}
"scripts": {
"post-autoload-dump": [
"@php artisan vendor:publish --tag=public --force"
]
}
}
4 changes: 0 additions & 4 deletions src/Http/Controllers/RazorpayController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ public function redirect(Request $request)

$cart = Cart::getCart();
$billingAddress = $cart->billing_address;
include __DIR__ . '/../../razorpay-php/Razorpay.php';

$shipping_rate = $cart->selected_shipping_rate ? $cart->selected_shipping_rate->price : 0; // shipping rate
$discount_amount = $cart->discount_amount; // discount amount
$total_amount = ($cart->sub_total + $cart->tax_total + $shipping_rate) - $discount_amount; // total amount
Expand Down Expand Up @@ -134,8 +132,6 @@ public function redirect(Request $request)
*/
public function verify(Request $request)
{

include __DIR__ . '/../../razorpay-php/Razorpay.php';
$success = true;
$error = "Payment Failed";
if (empty($request->input('razorpay_payment_id')) === false) {
Expand Down
Binary file added src/Resources/assets/images/razor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 0 additions & 72 deletions src/razorpay-php/README.md

This file was deleted.

60 changes: 0 additions & 60 deletions src/razorpay-php/Razorpay.php

This file was deleted.

44 changes: 0 additions & 44 deletions src/razorpay-php/composer.json

This file was deleted.

122 changes: 0 additions & 122 deletions src/razorpay-php/composer.lock

This file was deleted.

48 changes: 0 additions & 48 deletions src/razorpay-php/doc.md

This file was deleted.

4 changes: 0 additions & 4 deletions src/razorpay-php/libs/Requests-1.6.1/.coveralls.yml

This file was deleted.

Loading

0 comments on commit a036ca8

Please sign in to comment.