While subscribe a user I got eror code 91927 in braintree using node js - paypal-sandbox

I'm new to braintree. And when I run the subscribe user code from node sdk I got this Error.
gateway.subscription.create({
paymentMethodNonce: req.body.nonce,
planId: req.body.planId
}...
Need
I want to subscribe a user on specific plan in my app.

Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.
The payment method must be vaulted before you can associate it with a subscription, so you should refer to the payment method using its paymentMethodToken instead of a paymentMethodNonce.

Related

No Azure subscriptions discovered to provision app resources to

I'm using the VSC Teams Toolkit. But when I sign in to my Azure account to provision my files, it says "No subscriptions discovered" as shown below:
Which subscription should I get to proceed with provisioning the files?
As the information explained, your logged-in Azure account doesn't seem to have associated Azure subscription.
You can login to your Azure portal, and under subscriptions, please check whether you have accessible subscription.
I had the same issue. You really need to go to portal.azure.com -> Subscriptions and have at least 1 subscription listed in the table below.
If no subscription is available, create new one - Pay as you go.
Then, in VS Code - sign out, sign in and subscription will be available
If vscode is complaining about not have an active subscription in the Teams Toolkit extension, for one make sure the tenant id is added to vsocde. See here enter link description here and here enter link description here

PayPal Smart Button: Get Transaction Details & Update into Database

Hi I am currently doing project that is creating a payment gateway for my webpage and currently I am using PayPal Smart Button for the payment gateway
For now, I have successfully doing the payment but I am unable to get the data that I decided to use for updating the database. I used the PayPal developer website as reference(code, methods etc.), but it doesn't work. Get Transaction <-- I am not sure where should I put the provided code in a Controller/Model
I am using ASP.NET MVC for my project.
Please help me.
Thank you.
Create two routes that return JSON, one for "Create an order" and one for "Capture an order", documented here: https://developer.paypal.com/docs/business/checkout/server-side-api-calls/#server-side-api-calls
Pair your two routes with Smart Button JS for approval. Here is a demo: https://developer.paypal.com/demo/checkout/#/pattern/server
This way when an order is captured, you'll have an immediate API response on your server with all the transaction details. Update your database then.

How do I use a web hook using Stripe and ARMember in 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!

Firebase Cloud Functions: Send Email via Authentication System

Firebase Authentication has a built in email service. Is it possible to fire an auth based email via Cloud Functions (admin js sdk)?
Seems like I should be able to trigger an email from noreply#my-domain.com with a custom oob code which I could then use to drive my (client-side) application.
My use case would be, when a new order .collection("orders").doc(uid) has its stage field updated/changed to 'submitted' I would like to notify a user via email that a new order is submitted. Maybe even use the oob code to mark as 'processed'?
...just trying to avoid using a 3rd party email service altogether.
you can use MailChimp to do what you are asking, since like Miles says, you will need to do a workaround in order to fix this.
I have been using MailChimp my self to send emails to each user registered in my app , i have setup a couple of emails in mailchimp and i just add to the list all the users that register to my app, so the first message will be the welcome message, then after 2 days another email and so on, you can trigger an email whenever you want, since the doc is not that clear i have made a tutorial on how to integrate it with Android.
you can find that tutorial HERE , the only thing is that is in spanish, sorry.
The idea is simple, just get your users email throught FirebaseAuth , pass that email to the mailchimp query , and then setup an email from the mailchimp website
Unfortunately, their API does not appear to support emailing users in your project. However, they have sample code for cloudfunctions to email users you can easily tweak for your needs: https://github.com/firebase/functions-samples/tree/master/quickstarts/email-users

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.

Resources