How do I use a web hook using Stripe and ARMember in Wordpress - wordpress

I am working on a project with a third party website, in which I will create a membership recurrent plan, gather customer's information, store it, and charge the customer. Upon subscribing, the customer's credentials and information will be passed via an API to a third party website, where they will be able to access the service.
For the membership setup on my website, I am using ARMember, which is connected to a Stripe account. I am working with a developer for the whole API setup with the 3rd party website, but as a requirement, my developer is asking me to provide the webhooks We need a hook that can give user-object or user-signup details after the successful payment event.
Forgive me for being a newbie, as I am not a developer nor anything close to that. I have never worked with webhooks before.
In looking into ARMember's webhook documentation I found this, which I believe it is what my dev needs, arm_payment_gateway_validation_from_setup, however, there are no clear instructions on what to do with this, or how to use it. I guess they assume users seeking webhooks know exactly what to do with them, which is not my case. Please help anyone! Will be so grateful!

Related

Gmail SMTP plugin for wordpress/woocommerce

I am trying to make Gmail SMTP puligin work with my woocommerce/wordpress site.
I'm having this notice from Google Cloud:
Verification Status
Pending developer action
Complete all actions below. Update your email thread with our Trust and Safety team after you have completed an action. The Trust and Safety team will continue the verification process once all actions are completed. Learn more
Action Required
Comply with domain verification requirements
Ensure your application's domains have completed the Search Console verification process
Update brand information
Ensure that your app's name, logo, and OAuth clients meet all requirements
I asked about this from Google and they gave me this answer:
Thanks for your patience while we reviewed your project.
Since your app is a Gmail SMTP plug-in for Wordpress, and you or the site admin are the only users of the app, we recommend that you keep using your app with the “unverified app” screen. The Gmail API isn't for public use in this case, so you do not need to get verified.
If you are having issues activating the plugin, you can see all your support options in General Support.
Please note that Google also participates in community discussion groups and mailing lists that can help you find answers or troubleshoot problems.
We strongly recommend that you submit a question via any of the below third-party community discussion groups and/or mailing lists:
Stack Overflow - A question and answer site for programmers.
Server Fault - A question and answer site for deploying and managing IT platforms.
Google Developers - Issue tracking for features and bugs. Search existing issues before creating a new one.
Google Groups - A place for non-technical how-to questions.
google-app-engine
gce-discussion
kubernetes-users
google-cloud-bigtable-discuss
google-cloud-sql-discuss
gcd-discuss
cloud-dns-discuss
cloud-dataproc-discuss
cloud-pubsub-discuss
cloud-nl-discuss
cloud-speech-discuss
google-translate-api
cloud-videointel-discuss
cloud-vision-discuss
google-cloud-dev
google-stackdriver-discussion
Android-developers
I can't use this app without Google approval. I tried to send a test email and the plugin gave me this error/answer:
Gmail SMTP plugin cannot send email until you enter your credentials in the settings and grant access to your web application.
So how can I make Gmail SMTP work with my wordpress/woocommerce site?
Best Regards,
Tuomo Nurkkala
I think I tried everything and I asked from Google about this problem, but I'm not so sure if I understood their message correctly.
Best Regards,
Tuomo Nurkkala

Woocommerce Membership REST API check if user has a membership plan

I ma developing a mobile app with a wordpress backend that was developed by someone else and the person is unreachable. I have the usual Woocomerce membership plans built on the backend. The website works perfectly fine. The issue is this
I checked the REST API endpoints through 'discovery' and found all the usual endpoints, but my issue is how will i test the if the user has a membership plan via REST API. I have already wasted a lot of time figuring out the solution.
/wc/v3/memberships lists all the endpoints
/wc/v3/memberships/plans/ lists all the plans
when i make a call to all these endpoints, it gives me all the users which have memberships.
My question is how would i know if the current loggedin user has purchased a membership, there is no such specific endpoint to it, plus the docs are not very specific. They are vaugue. Good enough for a beginner but not for a production level.
This is the url which i am referring to, which i got from the "official" Woocomerce Membership website
https://skyverge.github.io/woocommerce-memberships-rest-api-docs/#get-user-memberships
Use this endpoint :
GET http://example.com/wp-json/wc/v3/memberships/members/
Just replace with current user id. you can get current user id through this endpoint :
GET http://example.com/wp-json/wp/v2/users/me

Symfony2 with sofort.com payment

I am working on a symfony 2 project where the user should be able to use payments via PayPal and Sofort.com.
Yet i have implemented paypal payments which i managed successfully.
But i am stuck with sofort.com. I have searched the web for tutorials but i can hardly find anything.
I've read through their API and integrated their PHP SDK. But i dont get how get on.Maybe someone here has worked with it, and can help me out what to do next.
That would be really cool
Can somebody help me point in the right direction with it? i would be really thankful.
You have to download the Sofort SDK from their website which is here.
Then in their example folder you'll find two files: example.sofortueberweisung.php and example.transaction.php.
The example.sofortueberweisung.php shows you how redirect the user with specific values to the payment page.
The example.transaction.php shows what to do in the notify action.
After the payment is completed the user will be send to the success link.
Sofort sends transaction data to the notify action which you can process.
If the user aborts the payment he or she will be forwarded to the abort link.
Its so super easy to implement it, i think imo its much easier then paypal.
Hope it helps people out.
You can try to use Omnipay library from ThePHPLeague, which provides a common interface to easily create a custom gateways. Also there is a symfony2 bundle which provides a wrapper for that library.

How to setup add payment method like odesk using asp.net

I want to develop an application to setup a payment method like odesk works in contractor account and my coding language is asp.net.
Please help me.
This is a pretty open-ended question, but I'm guessing that what you're after is a split payment..??
The Adaptive Payments API would be used for that, specifically Pay.
You've got options for using Parallel Payments or Chained Payments. Depending on how you want things to flow you'll have to make that decision and adjust your API request accordingly.
PayPal provides an SDK for .NET that you can get here. It will allow you to setup the Pay request the way you need to.
You're going to need a sandbox account for testing purposes, and then you'll need to get your application approved by PayPal in order to obtain a live App ID (the app ID is a parameter that gets passed in the headers of Adaptive Payments API requests).
You do all of that through your PayPal developer account.

Set privacy when publishing an action

Have anyone heard Facebook say anything about adding the possibility to specify the privacy when publishing an action? I wonder if it's something they plan for the near future or if it will take longer time for them to implement.
Background
The "App activity privacy" let's the user set who should be able to see actions published by the app. I would like my app to set the privacy for each and every action the app publishes, just as an app can do for wall posts by specifying the "privacy" field.
Edit 2012-05-24
I attended Facebook Developer Garage in Stockholm yesterday and had the opportunity to ask what Facebook's plan is. The answer was that Facebook did think a lot about adding flexible privacy settings, but decided that they want it as simple as possible for the user. They want to let the user decide the privacy settings for everything the app publishes once and the users can currently do this when they add the app. You never know when Facebook change their minds but currently they don't have a plan for decent privacy settings.
Facebook have now added the "privacy" parameter when publishing actions.
See https://developers.facebook.com/docs/opengraph/actions/
Case closed.
Edit: As Angel García Olloqui pointed out, the privacy field can only have the values ALL_FRIENDS or SELF. Pretty useless for now.
Edit: I added a more complete answer to the question.
Access token generates corresponding to your all permissions which appear on the first startup of the application. Then by using that access token app enables to get some information from user

Resources