GithubHelp home page GithubHelp logo

Comments (16)

GrahamCampbell avatar GrahamCampbell commented on May 5, 2024

When the amount if below 0.75 Euro, I get the error (The price is too low), is this normal?

Yes, you cannot charge someone such a small amount. If you need to charge customers lots of small amounts, you should batch up the charges, and charge them all together.

from cashier-paddle.

GrahamCampbell avatar GrahamCampbell commented on May 5, 2024

I am trying to create a fake purchase and have a few questions please.

What do you mean, fake purchase? Paddle currently doesn't support test purchases. You must use a real card and make a live transaction, or use a 100% off discount code. If you have tried to enable the sandbox mode option, that would explain the 404s. As the comment in the config file says, this feature is not generally available.

from cashier-paddle.

Benoit1980 avatar Benoit1980 commented on May 5, 2024

Sorry, my apology, by fake purchase I meant "purchased done from my side to test the system". Yes I understand that they have no system in place to create a fake purchase(I was surprised to be honest). The 100% off coupon is a great Idea I did not know about it.

So based on this code:

 $user = User::find(Auth::id());
        $payLink = $user->charge(0.75, 'test onecharge');

        return view('home', ['payLink' => $payLink]);

Do I have to create the "test onecharge" product in my paddle account first? As this is not explained in the doc.
It says simple one time charge.

I was hoping to be able to see the checkout with the above code.

Thank you.

from cashier-paddle.

GrahamCampbell avatar GrahamCampbell commented on May 5, 2024

Do I have to create the "test onecharge" product in my paddle account first?

Yes, I think so. Note that product IDs are integers, not strings.

from cashier-paddle.

Benoit1980 avatar Benoit1980 commented on May 5, 2024

Thanks, let me try that.

from cashier-paddle.

Benoit1980 avatar Benoit1980 commented on May 5, 2024

Just to let you know, in your doc you show a string.
https://laravel.com/docs/7.x/cashier-paddle#simple-charge

from cashier-paddle.

Benoit1980 avatar Benoit1980 commented on May 5, 2024

I havet tried both as a string and integer, I get the same error for the simple charge. I have create the product and/or subscription in the paddle back end but it is not working.

from cashier-paddle.

GrahamCampbell avatar GrahamCampbell commented on May 5, 2024

Paddle will tell you the product ID. It's not something you are able to choose.

from cashier-paddle.

Benoit1980 avatar Benoit1980 commented on May 5, 2024

Yes I know, I created them in the paddle back end:
product id: 596697
Subscription plan: 596246

But none of them work with the simple product, but they work with this code:

$user = User::find(1);

$payLink = $user->newSubscription('default', $premium = 34567)
    ->returnTo(route('home'))
    ->create();

return view('billing', ['payLink' => $payLink]);

Thank you.

from cashier-paddle.

Hussam3bd avatar Hussam3bd commented on May 5, 2024

@freddycrugger
Just make sure to add CASHIER_WEBHOOK in your .env file, the webhook URL is required by Paddle when you create a charge.

from cashier-paddle.

Hussam3bd avatar Hussam3bd commented on May 5, 2024

@freddycrugger Also for the price Paddle required a minimum amount to charge it was around $0.90, I'm not sure how much it was but you can try to create a product and play around it.

from cashier-paddle.

Benoit1980 avatar Benoit1980 commented on May 5, 2024

Thanks, this must be the problem then.

In the doc it says:

To ensure your application can handle Paddle webhooks, be sure to configure the webhook URL in the Paddle control panel. By default, Cashier's webhook controller listens to the /paddle/webhook URL path. The full list of all webhooks you should configure in the Paddle control panel are:

Subscription Created
Subscription Updated
Subscription Deleted
Payment Succeeded
Subscription Payment Succeeded

I did not look into this because the simple charge was not mentioned there.

from cashier-paddle.

Hussam3bd avatar Hussam3bd commented on May 5, 2024

@freddycrugger
Your welcome hope it solved your problem,

I think when you charge user things work differently, casher will send a request to Paddle to create pay link and Paddle in this case as the product id is not set will ask for the webhook URL and return URL.

But when you create a subscription you set Paddle's product id and the webhook URL is not required in this case
and Paddle will check if you provide webhook ULR in the vendor's dashboard.

from cashier-paddle.

Benoit1980 avatar Benoit1980 commented on May 5, 2024

Thanks great explanation. I will have to try it tomorrow night, 1am here :-(

Thanks again and I will revert back if it does not work.

from cashier-paddle.

driesvints avatar driesvints commented on May 5, 2024

The 100% off coupon is a great Idea I did not know about it.

Please read the docs: https://laravel.com/docs/7.x/cashier-paddle#testing

Screenshot 2020-07-30 at 13 56 35

Do I have to create the "test onecharge" product in my paddle account first? As this is not explained in the doc.
It says simple one time charge.

Again, explained here: https://laravel.com/docs/7.x/cashier-paddle#single-charges. Both simple charges and product charges are explained here.

Just to let you know, in your doc you show a string.

It does not? Please show where you see that. I've spotted one string usage in the subscription docs but all the others use an integer. I'll update that specific example.

I did not look into this because the simple charge was not mentioned there.

The very first step in the installation section says:

Screenshot 2020-07-30 at 14 00 43

Honestly, I don't mind helping out but you've clearly not read the docs closely enough. I'm going to close this now as the issue tracker isn't a support channel but if you try the cashier-paddle channel on Discord I'll try to help you out further.

from cashier-paddle.

Benoit1980 avatar Benoit1980 commented on May 5, 2024

Why did you add any comments? Hussam3bd sorted it all for me?
Clearly you have not properly read the last comment(it seems to happen to all of us not to read everything fully isn't it)

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.