Is there a way to dynamically upload catalog items from my database to PayPal Here using the API? - paypal

I'm looking to see if it's possible to add catalog items that are always changing with code rather than manually entering them one by one. I want to do this to make use of the barcode scanning feature on the PayPal Here POS app in a store that never sells the same item twice.
Here is the entry page I'm looking to automate with the PayPal API:
image of PayPal interface (was too new to stackoverflow to embed it)
I haven't found a hint of this in the API docs or on the web. Does anyone know if it's possible?

Related

Why are my PayPal Checkout buttons not opening a link to the PayPal Sandbox?

I am trying for the first time to implement a PayPal Checkout solution (aka PayPal Commerce Platform for Business) in an ASP.NET Web Application, using Web Forms. I've set up a new REST API for the Sandbox and followed PayPal's Set up server-side SDK guidance to install the SDK in my .NET project. PayPal's button demo now lets me log into the Sandbox with a newly created Sandbox user name and make a test payment, which is confirmed as being successful. So far, so good.
My next step was to create a PayPalButton.aspx page containing exactly the same code as used on Paypal's button demo page. All my updated code was then uploaded to my live site. That's when I hit a problem, as the PayPal buttons don't work on my live site (the PayPal log in window just briefly flashes and then disappears). Being a total newbie to the Paypal Checkout process, it's highly likely that I have made some very basic error.
The only thing I can think of is that my problem might have something to do with the section in Set up server-side SDK that refers to modifying HTTP request headers? I didn't understand what that section was asking me to do.
What routes/paths did you implement the create order and capture order functions at? What data do they return? Update your question with this information. For the create order route, is the data a valid JSON object with a PayPal order ID in the id key?
Have you set the paths in your "PayPalButton.aspx" HTML/JS code to call the aforementioned routes? Your question does not include any specific information about what is going on, i.e. your button code and the result (Response body) of the fetch calls from the browser's developer tools 'Network' tab.
This morning, I managed to resolve the problem with my PayPalButton.aspx page just briefly flashing the PayPal login page. As previously mentioned, it contains a script copied from PayPal's button demo. I then realised that it was different from the sample script provided on the Integrate Checkout page.
I created a new PayPalButton2.aspx page containing this alternative script and, unlike PayPalButton.aspx, it worked fine. In both cases, I had substituted my own Sandbox ClientID.

Update a Google Sheet w/ API Data

I'm using Google Sheets along with App Sheet to make a simple mobile app that tracks product inventory for me. It's working great. But I'd like to use a 3rd party API to bring in additional product info. I know how I can use IFTTT or Zapier to make a 3rd party API call, but I can't figure out how to make a 3rd party API call and then update my Sheet with the response. Is this possible? Thanks!T
David here, from the Zapier Platform team.
That's definitely possible! The first thing you'll want to do is decide on a trigger. Is this row only updated once (on creation) or on some other impetus (such as a different field being updated). For sake of example, let's assume creation. Your zap would look like this:
Trigger: New Row Created
Action: Code Step / Webhook Step (to fetch info)
Action: Update Row (using the data from steps 1 & 2)
There's more info about updating rows in the help docs here: https://zapier.com/help/google-sheets/#updating-rows
​Let me know if you've got any other questions!

Stripe iOS integration server side code

I have been playing around with the Stripe SDK and API and I am a little confused. I have a very simple use case. I want to use the built in STPAddCardViewController and STPAddCardViewControllerDelegate to save card information that a user puts in. We also need to charge the card based on the credit card the user created. We have a unique identifier for each user when they create an account and any user that has access to our app does need to create an account. What is the best way to do this?
We also aren’t able to get the card information (STPCardParams) that a user selects from the STPAddCardViewControllerDelegate. How would we do that?
The part that I am having the most trouble with is the server side piece. I know Stripe gives example code for this but I haven’t been able to get it to work for us. We are using a backend as a service for our app so don’t use code to create our server. Is there any simple code that we can deploy that allows us to pass the card information, our Stripe API key, a charge amount, and a currency to a server (on heroku for example), and just have that server charge the card for us? I don’t think this is that hard to do and it seems like it can be pretty cookie cutter for everyone who is using stripe. If this is the case, does anybody have the code for this? Is it possible to use stripe without server side code?

Request payment part way through course

I'd like students to be able to access the first couple of lessons in Moodle before being presented with a request for payment. I've searched for ages on Google and found nothing, and also searched for all the possible terms I could think of here, and again come up short. Apologies therefore for the lack of contributing research/evidence.
I'm using Paypal as the chosen method of payment at the moment. Moodle is version 3.2.
Is there a way to add this kind of option to the 'access restrictions' in the courses themselves?
There isn't an existing way to restrict activity access based on the users enrolment type.
Without writing some custom code, the easiest way to do this is probably to have a separate course containing the pay-walled content, with paypal enrolment set up.
Add an activity to the free course with a link to the paid course. Use access restrictions to hide it until the other activities are complete.
When a user completes the free course content, the link to the paid course will be revealed, and they can click to enrol using paypal.

Soundcloud API / Downloading sets (playlists)

I'm developing a custom player widget with the SoundCloud API. I want to allow downloading a complete CD/EP that is represented by a set/playlist as a zip package or something alike. The playlist REST request gives a JSON result with a field 'downloadable', but not the field 'download_url' as is the case with a track REST request.
Is it possible to let the widget user download a complete set at once, maybe for premium memberships only? If not, will this become possible in the future for any of the premium accounts?
I think it is very useful for allot of users that want to offer a new released album as a downloadable gift for promotion. Currently a user has to click on the download button for each track seperately.
Let me start with a sidenote: we are not SoundCloud support so telling us you would really really like a feature is not really really going to accomplish much.
Now to your question: I'm sure it is possible with some serverside work. You could download the tracks on the serverside and pack it for the user and make it available to them.