Giter Club home page Giter Club logo

Comments (8)

techguydev avatar techguydev commented on May 13, 2024 16

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.

HassanElshazlyEida avatar HassanElshazlyEida commented on May 13, 2024 2

I found that Either

  1. PADDLE_PUBLIC_KEY is incorrect which include only keys without -----BEGIN PUBLIC KEY----- and -----End PUBLIC KEY-----
  2. Email not verify

from cashier-paddle.

driesvints avatar driesvints commented on May 13, 2024

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.

rishabkapadia avatar rishabkapadia commented on May 13, 2024

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.

EeKay avatar EeKay commented on May 13, 2024

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.

arqamsaleem1 avatar arqamsaleem1 commented on May 13, 2024

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.

EeKay avatar EeKay commented on May 13, 2024

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.

saadusufzai avatar saadusufzai commented on May 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.