使用php成功付款后,将短信发送到用户的手机号码(已存储在数据库中) [英] send sms to a user's mobile no (already stored in database) on successful payment using php

查看:179
本文介绍了使用php成功付款后,将短信发送到用户的手机号码(已存储在数据库中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Android应用程序中,每个用户获得100卢比。当他注册时。现在,在其中一项活动中,如果用户首先点击按钮说V1并且付款成功,那么我的应用程序应发送短信,例如30卢比扣除,余额为70卢比。如果付款成功,则以其手机号码(存储在用户数据库中)登录用户。再次,如果他点击任何其他按钮说V3并且付款成功,那么它应该发送短信 - 30卢比扣除,余额是40卢比。我怎样才能做到这一点?还可以在第一次点击后在哪里存储用户余额的金额,类似于第二次点击后等等?任何建议或建议将受到高度赞赏。谢谢。

In my android application,each user gets 100 Rs. when he registers. Now in one of the activity if a user firstly clicks on a button say "V1" and the payment is successful then my app should send sms something like - "30 Rs. deducted, balance is 70 Rs." to the logged in user on his mobile number (stored in a users database) if the payment is successful. Again if he clicks any other button say "V3" and the payment is successful then it should send a sms- "30 Rs. deducted, balance is 40 Rs." How can I do this? Also where can I store the amount which user is balance after the first click, similarly after the second click and so on ? Any suggestions or advices will be highly appreciated. Thank You.

推荐答案

第一步是找到一个SMS提供商,然后你必须建立一个数据库来存储包含手机号码的用户信息,进行的任何交易。然后就交易价值计算余额。
The first step is to find an SMS provider, then Secondly you have to build a database to store the user's information that will contain mobile numbers, and any transactions carried out. The balance then would be worked out with respect to the value of transactions.


这篇关于使用php成功付款后,将短信发送到用户的手机号码(已存储在数据库中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆