Testing Facebook Messenger Bot Payments outside of the US - facebook-messenger

Trying to test Bot payments outside of the US. I am following this documentation:
https://developers.facebook.com/docs/messenger-platform/complete-guide/payments
Since I am not in US, I can only test, and I am not allowed to setup a payment provider (Paypal or Stripe). But when I try to test using the simple Buy button option (and obviously setting "is_test_payment": True, and testing with an admin user) I get following error message:
400 {"error":{"message":"(#1158) No valid payment
provider found. Please add a valid payment provider, it can be
tokenized payment, stripe or paypal.", "type":"OAuthException" ,"code":1158, "error_subcode":2018106, "fbtrace_id":"GbujhLzHh7U"}}
How do I solve this? Again, I only want to test for the time being.
Thanks!

Related

Stripe/Apple Pay immediately closing

We have a web application written in React that integrates with Stripe to take payments.
When the user accesses the Apply Pay option, the popup immediately closes before they can complete the transaction.
The domain has been added to the Apple Pay settings on Stripe
There are no errors or logs in the javascript console to indicate an issue.
This is using Stripe Connect
The same page works perfectly on Google Pay
The page in question is publicly accessible here: https://whitecobalt.rendr.co.uk/pay?key=0tRvBe7q4E10230
I have recorded a screen-share video of the issue, which can be viewed here:
Has anyone else experienced this or is able to point us in the right direction, we've tried everything, and we're a bit stumped!
Thanks in advance!
That usually means you didn't register the domain correctly for Apple Pay with Stripe.
On that page you are using Connect, you are trying to initialise stripe.js with the account acct_1M1B1IQ0dY0splyg.
So in that case you need to register the exact domain whitecobalt.rendr.co.uk on the connected account by making the /v1/apple_pay/domains API call described at https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#html-js-using-with-connect , using the livemode secret key of your platform account and that domain name/account ID as params.
Thank you - I have it working now.
It seems when you're working with Stripe Connect you need the domain in both the master Stripe account and the connected Stripe Account - then it works!

You currently do not have a developer account in QBO

I am trying to obtain my production keys for my QBO app following the steps in this link
here
However, when I try to start the "App Assessment Questionnaire", I get the error message below:
You currently do not have a developer account, please click here to complete setting up your developer account. Once that is complete you will be able to access the help pages.
This is what I see, and I DO have a developer account. It won't let me continue.
Please help!
UPDATE
I see this error in the address bar:
ErrorCode=ERROR_CREATING_USER&ErrorDescription=License+Limit+Exceeded
UPDATE #2
I tried creating a brand new account, a new app, on a different PC and the same thing happened. So this is not a cache issue.
UPDATE #3
Created 2 support tickets for this issue
#00114423
#00114415
I had to use a different account to access the help site
https://help.developer.intuit.com
I've the same issue since Friday (02/18) and spent hours to figure out what's the problem.
tried from different browsers and different IP addresses
made a brand new developer account to test with it
had a 1+ hour chat session with QB support (but not developer support)
sent an email to an address received from the chat assistant
sent a feedback at https://www.surveymonkey.com/r/AppAssess
According to the browser's developer tools:
the Start questionnaire button opens this URL:
https://developers.intuit.com/app/developer/appdetail/prod/questionnaire?appId=xxxxx:UUID_of_app
then it redirects to:
https://login.salesforce.com/services/auth/sso/yyyyyyyyyyy/Intuit_Enterprise?community=https://help.developer.intuit.com
finally, SSO to salesforce fails and it redirects back to:
https://developer.intuit.com/app/developer/qbpayments/docs/qbms-payments/hosted-paypage/faqs/help-redirect?**ErrorCode=ERROR_CREATING_USER&ErrorDescription=License+Limit+Exceeded**+-+Customer+Community+Login&ProviderId=xxxxxx&startURL=%2Fs%2Fquestionnaire%3Fapp%yyyyyyyyyyyyy
So, it seems to be, QB have reached a license limit at salesforce, which prevents new logins to create and the questionnaire from to load.
And the funny part is: the same thing happens, when I tried to create a support ticket and used the "Ask a question" button at https://help.developer.intuit.com/s/
Which means, I can't start the questionnaire and can't start a ticket about the error either.
I guess, if QB developer accounts whom created support tickets previously or started the questionnarie before the license limit has been reached, they have have a SSO login account at salesforce and able to fill in the form or start new support tickets, but others are stuck because of the license limit.
If somebody have a working QB developer account and able to start a support ticket, please do it, and link this page in it.
Or maybe, we should contact salesforce support to let QB know about the license limit.
I'll give it a try.
This seems to have been fixed. I tried running the questionaire and it worked.
I have also been having this problem the last several days and had the same lack of success with QB support. The URL callback error I see is:
ErrorCode=REGISTRATION_HANDLER_ERROR&ErrorDescription=Please+sign+the+terms+of+service+before+you+login+to+community
I don't see anywhere I can sign a TOS in my account page - it's possible that in fact QBO hasn't signed a TOS with Salesforce. What a joke.

Where do I find my fullfillment URL to the google home action?

I've just been started integrating assistant to smarthome project that i'm working on. And I've initially experimenting the assistant by implementing account linking flow and sync intent. I tested the account linking by testing with the google developer tool for oauth flow and confirmed it worked. Whereas, in the smarthome app, upon account linking, as soon as it completes the account linking flow I keep receiving an error message stating "Couldn't update your settings, Check your connection". Didn't find much clue with the logs for troubleshoot. And also, the solutions they were on the other posts does not seem to be working out for me as well. Would appreciate if anyone could help resolve this.
Also, I'd like to know the place where I can find the fulfillment URL that needs to be entered when creating the smarthome action. I've been using firebase to deploy my cloud functions. Moreover, I suspect weather the fulfillment URL I entered that was provided by codelabs sample were invalid thus assisant unable reach the fulfillment.
Your fulfillment URLs are the functions that you've created. For Firebase, there's a specific pattern that you can follow. If you visit your Firebase console, in the functions section, you'll see the full URL which you can copy and paste into the Fulfillment URL input.
In my example, I have a cloud function named "about_info" with the pattern https://us-central1.PROJECT_ID.cloudfunctions.net/FUNCTION_NAME. So you can use a similar scheme to identify what your function names will be.

React Native admob, Internal Error

When I test banner ads with test with test ad id everything works great, but when I use my real ad unit id, I receive this error as below:
Internal error, an invalid response was received from the ad server.
How can I make it work with real id?
<AdMobBanner
adSize="fullBanner"
adUnitID="ca-app-pub-1xxx/5xxx"
testDevices={[AdMobBanner.simulatorId]}
onAdFailedToLoad={error => console.error(error)}
/>
enter image description here
If the ad unit was just created please wait a bit because it takes some time to start working after verfying your payment details. If you have not already added the payment details go to Home page of Admob site and do the following steps.
1) Click Home page,
error this:
Your ad units are not displaying ads because you haven't provided your account payments information yet.
2) Click Fix It.
3) Click Select Payment,
4) And Submit.
Within 24 hours, your verification mey be done and ad will be published.
I had the same issue with my app. You just need to wait for a little. Your ad id is newly created so it will take some time to fetch ads from google servers. So give it some time and it will work soon. the first day I will try with my AdMob account its say "Internal error, an invalid response was received from the ad server." on next day try with run-android it's working fine for me. please wait for some time max 1 day after the create AdMob banner add after it's work.
Thy to removing onAdFailedToLoad

Facebook Taggable Friends

I am trying to get all the friends of the user currently signed in. I tried /me/friends but that didn't work as it returns only the users using my app already. I then tried https://graph.facebook.com/me/taggable_friends?access_token=somecodehere
In the browser it says
"To use taggable_friends on behalf of people who are not admins,
developers and testers of your app, your use of this endpoint must be
reviewed and approved by Facebook. To submit this feature for review
please read our documentation on reviewable features:
https://developers.facebook.com/docs/apps/review"
But when I do a GET (using Angular.js) on this URL with a valid access token using my application, it returns me a list of my friends, with their id, name, picture. Why is this happening? How can my app get the data if my browser cannot?
Also, the picture currently returned is too small. How can I get the email and larger picture of all my friends in this response?
Any help is highly appreciated.
PS: I am building a cordova app and getting access_token via CordovaOAuth.
taggable_friends works for you because it works without review for everyone with a role in the App (Admin/Developer/Tester). You only need to go through the review process if you want to go public with your App.
That beind said, taggable_friends is for tagging only, a larger picture is not neccessary for that and you definitely canĀ“t get their email. What would you do with the email of friends who did not even authorized your App? You would not be allowed to use those emails anyway. You can ONLY get the email of a Facebook user by authorizing that user with the email permission.
More information about getting access to friends: Facebook Graph Api v2.0+ - /me/friends returns empty, or only friends who also use my app

Resources