I have already integrated Stripe payments into one of my websites, and all is working great (and I'm using a unique webhook for this website).
I have just created an entirely different service through another website of mine, and am in the process of integrating Stripe on that website too.
However I have one problem, as far as I can see, I have to use the same webhook for both of my services. This won't work tho!! I really need separate webhooks for each service... is this possible?
PS: I read on Stripe's docs that every event will be sent to every webhook in the list (https://dashboard.stripe.com/account/webhooks).
Please somebody shed some light!
This was such a tidy fix.
Simply log in to your Stripe dashboard, and in the top right click you account name and then click 'Create New Account'.
Props to Matthew for the answer which also matches Stripe's docs
You must use separate Stripe accounts for projects, websites, or businesses that operate independently from one another.
Log in to your Stripe Dashboard and there is a drop down option that shows your current account name on the top left hand side. Select it and add new account.
Related
I'm currently developing a little shop system. Now I want to integrate a simple PayPal checkout. Just want to press checkout, log in to PayPal (as a customer), click pay and that's it, I get the money and he gets a confirmation.
Now, for Laravel I found 2 plugins, both relying on this. But somehow I don't come clear with those. Also, I found this, but its too old and different now, using Laravel 5.3. I also found this tutorial, but it also doesn't seem to be what I need (at least I guess so). I already created two sandbox accounts, a personal and a business acount, and I also have a user key and secret key.... But now, how can I use them?
What's the easiest way to just implement a quick way to checkout, entering some product data, the complete price and just be able (as a customer) to log in and click okay? I don't want more basically.
I'm using netshell/paypal for my current POS App. It's pretty good and not complex. Check their documentation from here.
If you are using 5.3 why not go with the new cool Cashier? https://laravel.com/docs/5.3/billing
I have a website coded in PHP that uses paypal buttons/IPN for subscriptions.
The method is limited and I need to replace it with the REST-API.
What the system needs to do:
Accept new user recurring-payment subscriptions
Be able to change plan pricing for new users
Be able to change plan pricing for existing users
Change subscription plans mid-subscription(If a user upgrades from pro to master the price goes up, and the opposite way it goes down).
The price difference between packages is 5$
Give periodic discounts for a limited amount of months.
The questions:
1.) What is the equivalent of recurring-payments in the PHP-API or REST-API? (I'd rather it auto-charges and notifies my IPN if possible)
2.) How can I automatically refund/charge an additional amount when the user upgrades/downgrades in the middle of a month?
3.) Is there a standalone PHP control-panel that can connect to the paypal API to manage the subscription packages + sales?
Thanks in advance!
If you are looking to use REST APIs, the best place to start is going to be at the REST API docs. For your situation, you can use the vault to set up a recurring payment system. You could also use the future payments API, but you will need to make sure you buy DPRP for your account. Contact PayPal Customer Support to enable DPRP.
With the Vault API, you can just create one time payments over and over with the token you get when storing a credit card.
There is an in-depth walkthrough using the SDK on the PayPal PHP SDK Wiki.
To do refunds, you can use the Refund REST API. All this assuming that you would be writing scripts to detect your user downgrading/upgrading. You would just need to store the amount they are paying each month in your DB.
There are some shopping carts out there that are implementing REST APIs. You might need to google search for something like that.
Hope that helps and gets you started in the right direction!
I'm using the Salesforce REST API and found it very hard to find decent documentation.
I can successfully log in with OAuth and i can push new accounts to Salesforce.
I use the instance url to make the API calls and i send the following fields to create an account object:
Name
Rating
Description
The problem is that I created a free trial (which sits on na9.salesforce.com) and everything worked fine.
I created a second free trial to check if everything works with another account, but the rating field is not available... I get the following message from Salesforce:
"[{"message":"No such column 'rating' on sobject of Account"}]"
Why is that?
Also, is it possible to add notes to a created account using POST? And is it possible to create Leads instead of Accounts using the API?
Thanks in advance,
A feature called field level security (FLS) can mean that even standard fields are not accessible, check the FLS settings on account in your second org.
Docs for the REST API are on the developer force site
I just created an account on https://labs.aweber.com/apps in order to test Aweber service. I created an app there too.
First,I'm trying to create a list (listname) in my this developer account, I"m not sure how to add a list to it? and can see app id, is this list_id?
Second, I'm trying to access this developer account using my plugin. I have downloaded a PHP library from their labs and it contains demo.php. I have found Consumer Key & Consumer secret keys from labs, and changed them in my demo.php and when i run demo.php it always takes me to:
https://auth.aweber.com/1.0/oauth/authorize?oauth_token=Aqz6ePpjxPrZ0DePqi3LDBmZ
I'm not user which login to use?
Third, I'm trying to add a subscriber to a list. How can i get accessKey,accessSecret,$account_id for below script?
https://labs.aweber.com/docs/code_samples/subs/create
Aweber's labs documentation are very short, they are not such clear about these things. Please give me your suggestions if any body have used Aweber's labs account for testing. Thanks
You also need to have an Aweber account. The developer account just gives you the privileges to create an app and talk to their API.
You then need a regular Aweber account to add subscribers or gets lists.
I'm trying to implement a plugin in Moodle where new users are registered using Paypal.
And the registration for the new users will require paypal payment to complete registration.
If anybody can help me with any example, code, plugin, or any link, I'll be grateful.
PayPal enrollment is included as part of Moodle's core code, so you just need to enable and then configure it. Documentation is here. This covers enrollment in a specific course, rather than new user signup as typically people want to charge different amounts for different courses, rather than a flat rate for access to everything.
There is no existing PayPal authentication plugin to make it so that a user must pay to register on the site, but if you want to make one the developer docs are here.