-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adjust for Paddle Billing v2 * Fix failing transactions * Paddle updates * Rebase * Update cancellation webhook * Update cancel button * Fix the cancel and update buttons * Update the docs * Fix plan switching * Adding updates to the checkout * Adding functionality so that way the invoice downloads work again * Adding updates to apikey * Fix a typo * Update docs api key references * Get the latest subscription * Don't list subscriptions if none --------- Co-authored-by: Tony Lea <[email protected]>
- Loading branch information
1 parent
3ab5af8
commit cfe8ff3
Showing
19 changed files
with
14,689 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
wave/database/migrations/2023_08_28_113515_change_subscription_id_to_string.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
class ChangeSubscriptionIdToString extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function up() | ||
{ | ||
Schema::table('paddle_subscriptions', function (Blueprint $table) { | ||
// Change subscription_id and plan_id columns to string type | ||
$table->string('subscription_id', 255)->change(); | ||
$table->string('plan_id', 255)->change(); | ||
// Adjusting the length of the cancel_url and update_url columns to 500 (or a value that suits your needs) | ||
$table->text('cancel_url')->change(); | ||
$table->text('update_url')->change(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
* | ||
* @return void | ||
*/ | ||
public function down() | ||
{ | ||
Schema::table('paddle_subscriptions', function (Blueprint $table) { | ||
// Revert back to integer type if needed | ||
$table->integer('subscription_id')->change(); | ||
$table->integer('plan_id')->change(); | ||
// Reverting the length back to 255 | ||
$table->string('cancel_url', 255)->change(); | ||
$table->string('update_url', 255)->change(); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.