Comments (16)
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.
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.
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.
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.
Thanks, let me try that.
from cashier-paddle.
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.
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.
Paddle will tell you the product ID. It's not something you are able to choose.
from cashier-paddle.
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.
@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.
@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.
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.
@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.
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.
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
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:
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.
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)
- 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.