Comments (8)
Hi @driesvints thanks a lot for the fast feedback.
it is solved now, I had confused the " Your API Key " with the "Auth Code"
If this happens to some one too you have to select the information that is in this address:
https://vendors.paddle.com/authentication
Thanks
from cashier-paddle.
I found that Either
- PADDLE_PUBLIC_KEY is incorrect which include only keys without -----BEGIN PUBLIC KEY----- and -----End PUBLIC KEY-----
- Email not verify
from cashier-paddle.
Do all the resources in your database, your product ids in your code etc belong to the new account?
If it's an env issue: php artisan config:clear
.
from cashier-paddle.
UPDATE:
~
the demo data provided for receipts model won't work, as the page checks for the actual receipt on paddle via api.
the billing page will work only if:
1]you have manually make a payment
2]the record in your db (subscriptions & receipts table) corresponds to a valid subscription and receipt.
or
if no entries corresponding to that user exists in subscriptions and receipts table.
~
@HassanElshazlyEida re: point 1, issue is not related to that. at least not in my case. in fact it has to be present.
faced same issue - use case:
while faking records, created subscriptions using
$user->subscriptions()->create([
'name' => 'default',
'paddle_id' => random_int(1, 9999),
'paddle_status' => 'active',
'paddle_plan' => $planId,
'quantity' => 1,
'trial_ends_at' => null,
'paused_from' => null,
'ends_at' => null,
]);
now, the billing page throws permission error, because it needs a entry in receipts table as well.
$user->receipts()->create([
"billable_id" => 1,
"billable_type" => "App\\Models\\User",
"paddle_subscription_id" => 11111,
"checkout_id" => "11111-1111111-11111",
"order_id" => "1111-11111",
"amount" => "100",
"tax" => "10",
"currency" => "USD",
"quantity" => 1,
"receipt_url" => "http://sandbox-my.paddle.com/receipt/1111-11111/11111-111111-11111",
"paid_at" => now(),
]);
It worked after the above action.
from cashier-paddle.
For me, this was because I still had PADDLE_SANDBOX = true in my production .env file.
Removing it (or setting it to false) fixed this issue for me
from cashier-paddle.
Is it required to verify the domain on the paddle as well? I'm encountering this error and working on my local machine where my domain is something like this http://127.0.0.1:8000/. Any idea how to resolve this issue?
from cashier-paddle.
Is it required to verify the domain on the paddle as well? I'm encountering this error and working on my local machine where my domain is something like this http://127.0.0.1:8000/. Any idea how to resolve this issue?
Your production account (vendors.paddle....) will only work when your domain was validated accordingly.
Working from localhost using the sandbox-venderos.paddle... environment did not require me to validate domains etc.
If you're using the production environment from your localhost, I guess that won't because, as you indicated, validation hasn't been applied. I have no experience using localhost or public api services like NGROK with the production environment of Paddle.
from cashier-paddle.
Use This link if you are testing it on local host or staging
https://sandbox-vendors.paddle.com/
curl -X POST -d 'vendor_id=33315'
-d 'vendor_auth_code=73b583226fbe6bb42cd591e40fcb4234324232344'
-d 'subscription_id=580998'
-d 'amount=10.00'
-d 'charge_name=Plan Add-on Charge'
https://sandbox-vendors.paddle.com/api/2.0/subscription/{subscription_id}/charge
from cashier-paddle.
Related Issues (20)
- Allow reusing an existing customer through `PerformsCharges::subscribe()` HOT 8
- createAsCustomerIfNotExists HOT 4
- Disable generic trial once customer is subscribed HOT 1
- Fix incrementQuantity() & decrementQuantity() Throwing Error HOT 5
- Notice in the docs about "default checkout URL" HOT 1
- [2.x] add end at of the subscription period HOT 1
- Fix nextPayment() total HOT 1
- returnTo function added to checkout does not redirect HOT 6
- Bill for non-catalog items HOT 4
- Issues with subscriptions "price_id must be a string" HOT 4
- Webhook duplicating the response statuses HOT 8
- Cashier::findBillable($customerId) not returning anythying HOT 2
- Get subscription payment method HOT 1
- Add support for authentication via client-side tokens HOT 1
- Paddle webhook handler doesnt work HOT 3
- Laravel cashier-paddle package conflict with passport Auth Header HOT 1
- Paddle with Passport giving: Authentication header included, but incorrectly formatted HOT 2
- Pausing Subscriptions HOT 1
- Applying a discount on checkout HOT 1
- Problem with billing API - Transaction not created in the db HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cashier-paddle.