当前位置:网站首页>PHP Apple internal purchase callback processing
PHP Apple internal purchase callback processing
2022-06-12 10:30:00 【P P PHP】
public function notify(){
$response = file_get_contents( "php://input");
$result = json_decode($response,true);
if($result['password']!=' Secret key '){// Judgement key
$this->error("password error","",500);
}
// product ID
$product_id = $result['auto_renew_product_id'];
// Get the original transaction ID
foreach ($result['unified_receipt']['pending_renewal_info'] as $kk => $vv){
if($vv['product_id'] == $product_id){
$original_transaction_id = $vv['original_transaction_id'];
}
}
if(!$original_transaction_id){
$this->error("original_transaction_id error","",500);
}
// Current transaction information
$latest_receipt_info = $result['unified_receipt']['latest_receipt_info'][0];
// Expiration time
$ex边栏推荐
- JS string combination
- How to play the 2022 Taobao 618 Super Cat Games? Playing skills of 2022 Taobao 618 Cat Games
- 性能指标的信仰危机
- 不需要安装防毒软件的系统Chromebook
- np. Meshgrid() function and coordinate position generation in 3D space and numpy Introduction to repeat() function
- Get start date and end date for all quarters of the year
- Mobile terminal commissioning
- Summary method of lamp environment deployment
- MySQL implements split method
- Valentina Studio Pro for MAC (MAC database management software)
猜你喜欢

Student management system

机器学习不是你想用,想用就能用

数组,整型,字符变量在全局和局部的存在形式

Global and local existence of array, integer and character variables

Tp6+memcached configuration

ASP.NET Core权限系统实战(零)

Is the acceptance standard a test case?

Leetcode2154. Multiply the found value by 2 (binary search)

Pagoda chevereto1.6.2 the latest version of stepping on the pit tutorial in Chinese

A hundred secrets and a few secrets - Caesar encryption
随机推荐
ServletContext object
Data processing and visualization of machine learning [iris data classification | feature attribute comparison]
ID obfuscation
Leetcode2154. Multiply the found value by 2 (binary search)
Reverse analysis of Huawei housekeeper software [transfer]
The solution of Lenovo notebook ThinkPad t440 WiFi dropping all the time
Class selectors and using pseudo class selectors with
【实验】MySQL主从复制及读写分离
A few secrets - a special day
Circuitbreaker fuse of resilience4j -- Measurement of circuitbreakermetrics index
[MySQL] learn more about the clustered indexes and auxiliary indexes (b+ tree indexes) in InnoDB
Wechat payment, wechat refund, Alibaba payment
Qt自定义窗口圆角
PHP: seven cattle cloud upload file
PHP: Excel to get the letter header
学生管理系统
Pycharm view the current version of opencv
Mysql5.6.24 installation free deployment method
在App内跳转微信,打开微信
性能指标的信仰危机