Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
head77x
QuickGet.Co
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
QuickGet.Co
/
callback_json_sample.php
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
47 lines (38 loc) · 1.55 KB
master
Breadcrumbs
QuickGet.Co
/
callback_json_sample.php
Copy path
Top
File metadata and controls
Code
Blame
47 lines (38 loc) · 1.55 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* 필요한 파라메터 채우기
*/
$params=array();
$params['appid']=''; //와라페이 개발자 사이트 또는 와라페이 앱의 내정보>APPID 에서 확인
$params['money']='100'; // 최소 10원 이상
$params['callback']='json'; // 결제 진행방식 - JSON인 경우는 내 웹사이트에서 이동하지 않고, 리턴되는 QR코드를 화면에 표기하고, Notify 로 결제 결과가 올 때까지 대기
$params['notify']='결제 결과를 전달받을 여러분의 서버 URL'; // 결제 결과를 POST 방식으로 전달받을 URL
/**
*
* API 문서를 보고 필요한 내용들 추가
*/
/**
* 요청하기
*/
$url="http://wara-kr.quickget.co/pay/request.html";
$result=file_get_contents($url."?".http_build_query($params));
/**
* 여기서부터는 위의 요청에 따른 리턴값 예제
*/
JSON 방식으로 리턴됨
{
"code": 0,
"quickid": 346,
"message": "https:\/\/epay.miguyouxi.com\/jump-init.do?cmd=quick&country=kr&id=MzQ2",
"qrcode": "http:\/\/wara-kr.quickget.co\/uploadfile\/qrcode\/3139ed4b18377b36bcf1857bb8255489_logo.png",
"token": "1645r0c"
}
/**
* 여기서부터는 최종 사용자가 결제를 완료하면, 결제 결과를 전달받는 여러분의 서버 URL에서 받는 내용
*/
echo $_POST['code']; // 성공 실패 여부
echo $_POST['trade_sn']; // 영수증 번호
echo $_POST['appid']; // 상점 appid
echo $_POST['custom_trade_sn']; // 주문서 번호
echo $_POST['money']; // 실제 결제 금액
echo $_POST['status']; // 결제 결과 메세지
echo $_POST['paytime']; // 결제 완료 시간
You can’t perform that action at this time.