Cloud Computing 5 min read

Build an Alipay Mini‑Program with Alibaba Cloud Serverless in 4 Simple Steps

Learn how to create an Alipay mini‑program, link it to Alibaba Cloud Serverless, configure keys, deploy backend functions and a cloud database, and share the finished app with friends—all explained step‑by‑step with screenshots.

Alibaba Cloud Developer
Alibaba Cloud Developer
Alibaba Cloud Developer
Build an Alipay Mini‑Program with Alibaba Cloud Serverless in 4 Simple Steps

Step 1: Register and Set Up Cloud Account

Log in to Alipay Developer Center, create a mini‑program by filling its name, English name, logo, etc., then switch to Alibaba Cloud console, create a Serverless service space and bind it to the mini‑program account.

Generate a public‑private key pair with Alipay Open Platform Development Assistant, paste the private key into Alipay’s interface signing settings, obtain Alipay’s public key, and add both keys in the Alibaba Cloud Serverless service settings.

Step 2: Install Template and Load Code

Download the prepared code template, unzip it, open the project in the Alipay Mini‑Program IDE, and associate it with the previously created mini‑program. The project contains a client folder (frontend) and a server folder (backend) that will be deployed to the Serverless service.

Step 3: Deploy Backend Functions

In the Serverless console, right‑click the service space, locate the two cloud functions, create new functions named getAllData and updateUserData (matching folder names), then deploy each function.

Create a cloud database named testdb (or another name, remembering to update the code accordingly) and redeploy the functions so the updated database name takes effect.

Step 4: Share and Test

After deployment, the mini‑program appears in the Alipay app for testing. To let friends use it, add them as experience members in Alipay Open Platform’s member management.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Serverlesscloud computingTutorialMini ProgramAlipay
Alibaba Cloud Developer
Written by

Alibaba Cloud Developer

Alibaba's official tech channel, featuring all of its technology innovations.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.