CN112967051A - Apple purchase payment method and device - Google Patents

Apple purchase payment method and device Download PDF

Info

Publication number
CN112967051A
CN112967051A CN202110282121.XA CN202110282121A CN112967051A CN 112967051 A CN112967051 A CN 112967051A CN 202110282121 A CN202110282121 A CN 202110282121A CN 112967051 A CN112967051 A CN 112967051A
Authority
CN
China
Prior art keywords
payment
apple
server
executing
order
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110282121.XA
Other languages
Chinese (zh)
Inventor
吴昌景
范金良
唐光宇
闫乃永
卢学明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baobao Bus Co ltd
Original Assignee
Baobao Bus Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Baobao Bus Co ltd filed Critical Baobao Bus Co ltd
Priority to CN202110282121.XA priority Critical patent/CN112967051A/en
Publication of CN112967051A publication Critical patent/CN112967051A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3274Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3276Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being read by the M-device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3821Electronic credentials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

According to the method and the device for the payment of the internal purchase of the apple, provided by the invention, the service requirements are divided by checking the service end according to the requirement, a payment channel is requested to the service end if the checking is required, a payment request is initiated to the apple server through the service end, the local order information is stored if the apple payment callback is successful, the apple bill is checked through the service end, corresponding operation is executed according to the checking result, the order certificate is checked to the apple server according to the ID of the payment commodity if the checking is not required, and the result returned by the apple server is received.

Description

Apple purchase payment method and device
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for apple purchase payment.
Background
As is known, the user usually needs to use the apple purchase function to purchase virtual products in the apple system, but in actual use, failure situations such as failure in order information verification or failure in payment calling can occur often under the conditions that the apple server is unstable and the user network state is poor, so that the user cannot pay or cannot charge the account, and the company income and the user experience are affected.
In addition, different products have different requirements on the use of purchased products, for example, some products do not need server side verification, only client side local verification is realized, and some products do not need extra supplementary payment operations such as code scanning payment and the like. And the parameters required by different products in the payment process are different. Is cumbersome to use and can degrade code readability.
Therefore, a method and a device for apple purchase payment are needed, and an apple purchase payment system capable of meeting different business requirements can lead a user to import a required corresponding function, and the function can be realized by calling a unified interface from the outside.
Disclosure of Invention
Technical problem to be solved
In order to solve the above problems in the prior art, the invention provides a method and a device for apple purchase payment, which can enable a user to import a required corresponding function by an apple purchase payment system capable of meeting different business requirements, and can realize the function by calling a unified interface from the outside.
(II) technical scheme
In order to achieve the purpose, the invention adopts a technical scheme that:
a method for buying payment in apple includes the following steps:
s1, acquiring the commodity ID of the server and the corresponding payment commodity ID in the apple server, and judging whether the server needs to check, if so, executing a step S2, otherwise, executing a step S3;
s2, requesting a payment channel to a server, creating a payment request to the apple server through the server, storing local order information if the apple payment callback is successful, verifying an apple bill through the server, and executing corresponding operation according to a verification result;
and S3, checking order certificates to the apple server according to the payment commodity ID, and receiving a result returned by the apple server.
In order to achieve the purpose, the invention adopts another technical scheme as follows:
an apple buy-in payment apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor when executing the program effecting the steps of:
s1, acquiring the commodity ID of the server and the corresponding payment commodity ID in the apple server, and judging whether the server needs to check, if so, executing a step S2, otherwise, executing a step S3;
s2, requesting a payment channel to a server, creating a payment request to the apple server through the server, storing local order information if the apple payment callback is successful, verifying an apple bill through the server, and executing corresponding operation according to a verification result;
and S3, checking order certificates to the apple server according to the payment commodity ID, and receiving a result returned by the apple server.
(III) advantageous effects
The invention has the beneficial effects that: the service requirements are divided according to whether the verification is needed or not, a payment channel is requested to the service end if the verification is needed, a payment request is initiated to the apple server through a creation order of the service end, the local order information is stored if the apple payment callback is successful, the apple bill is verified through the service end, corresponding operation is executed according to a verification result, an order certificate is verified to the apple server according to the payment commodity ID if the verification is not needed, and a result returned by the apple server is received.
Drawings
FIG. 1 is a flow chart of a method of apple buy-in payment according to an embodiment of the present invention;
fig. 2 is a schematic overall structure diagram of an apple purchase payment device according to an embodiment of the present invention.
[ description of reference ]
1: a device for buying payment in apple;
2: a memory;
3: a processor.
Detailed Description
For the purpose of better explaining the present invention and to facilitate understanding, the present invention will be described in detail by way of specific embodiments with reference to the accompanying drawings.
Example one
Referring to fig. 1, a method for apple purchase payment includes the steps of:
s01, importing the SDK, configuring parameters according to requirements, and initializing different service payment functions according to the imported parameters;
specifically, the SDK is imported, parameters are configured according to service requirements, the SDK is initialized, and components needing to be imported for corresponding services are selected according to the cocoa subcomponents. For example
BBIAP, '-1.1.0', subspecie > [ 'world', 'QRCodePay' ], thus introducing world related services and requiring code scanning support.
S02, judging whether unfinished order information exists locally, if yes, executing a step S03, otherwise, executing a step S1;
and S03, reinitiating the payment verification process according to the queue of the local storage unfinished transaction, performing order supplementing operation, and removing the finished payment from the local unfinished transaction queue.
S1, acquiring the commodity ID of the server and the corresponding payment commodity ID in the apple server, and judging whether the server needs to check, if so, executing a step S2, otherwise, executing a step S3;
step S2 includes:
s21, a payment request channel for judging whether the code scanning function is supported;
s22, a payment request is sent to the apple server through the server side creation order, local order information is stored if apple payment callback is successful, the apple bill is verified through the server side, if verification is successful, the step S24 is executed, and if not, the step S25 is executed;
s24, removing the order information stored locally;
and S25, judging whether the code scanning payment is supported or not, if so, carrying out code scanning payment, creating an order to produce the two-dimensional code, polling to wait for a payment result, and if not, returning a result and failing to pay.
S2, requesting a payment channel to a server, creating a payment request to the apple server through the server, storing local order information if the apple payment callback is successful, verifying an apple bill through the server, and executing corresponding operation according to a verification result;
and S3, checking order certificates to the apple server according to the payment commodity ID, and receiving a result returned by the apple server.
Example two
Referring to fig. 2, an apparatus 1 for purchasing payment in apple includes a memory 2, a processor 3 and a computer program stored on the memory 2 and executable on the processor 3, wherein the processor 3 implements the steps of the first embodiment when executing the program.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.

Claims (6)

1. A method for buying payment in apple is characterized by comprising the following steps:
s1, acquiring the commodity ID of the server and the corresponding payment commodity ID in the apple server, and judging whether the server needs to check, if so, executing a step S2, otherwise, executing a step S3;
s2, requesting a payment channel to a server, creating a payment request to the apple server through the server, storing local order information if the apple payment callback is successful, verifying an apple bill through the server, and executing corresponding operation according to a verification result;
and S3, checking order certificates to the apple server according to the payment commodity ID, and receiving a result returned by the apple server.
2. The apple buy-in payment method according to claim 1, wherein step S1 is preceded by:
s01, importing the SDK, configuring parameters according to requirements, and initializing different service payment functions according to the imported parameters;
s02, judging whether unfinished order information exists locally, if yes, executing a step S03, otherwise, executing a step S1;
and S03, reinitiating the payment verification process according to the queue of the local storage unfinished transaction, performing order supplementing operation, and removing the finished payment from the local unfinished transaction queue.
3. The apple buy-in payment method according to claim 1, wherein the step S2 includes:
s21, a payment request channel for judging whether the code scanning function is supported;
s22, a payment request is sent to the apple server through the server side creation order, local order information is stored if apple payment callback is successful, the apple bill is verified through the server side, if verification is successful, the step S24 is executed, and if not, the step S25 is executed;
s24, removing the order information stored locally;
and S25, judging whether the code scanning payment is supported or not, if so, carrying out code scanning payment, creating an order to produce the two-dimensional code, polling to wait for a payment result, and if not, returning a result and failing to pay.
4. An apparatus for purchasing payment in apple comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to perform the steps of:
s1, acquiring the commodity ID of the server and the corresponding payment commodity ID in the apple server, and judging whether the server needs to check, if so, executing a step S2, otherwise, executing a step S3;
s2, requesting a payment channel to a server, creating a payment request to the apple server through the server, storing local order information if the apple payment callback is successful, verifying an apple bill through the server, and executing corresponding operation according to a verification result;
and S3, checking order certificates to the apple server according to the payment commodity ID, and receiving a result returned by the apple server.
5. The apple buy-in payment device of claim 4 wherein the step S1 is preceded by:
s01, importing the SDK, configuring parameters according to requirements, and initializing different service payment functions according to the imported parameters;
s02, judging whether unfinished order information exists locally, if yes, executing a step S03, otherwise, executing a step S1;
and S03, reinitiating the payment verification process according to the queue of the local storage unfinished transaction, performing order supplementing operation, and removing the finished payment from the local unfinished transaction queue.
6. The apple buy-in payment apparatus according to claim 4, wherein the step S2 includes:
s21, a payment request channel for judging whether the code scanning function is supported;
s22, a payment request is sent to the apple server through the server side creation order, local order information is stored if apple payment callback is successful, the apple bill is verified through the server side, if verification is successful, the step S24 is executed, and if not, the step S25 is executed;
s24, removing the order information stored locally;
and S25, judging whether the code scanning payment is supported or not, if so, carrying out code scanning payment, creating an order to produce the two-dimensional code, polling to wait for a payment result, and if not, returning a result and failing to pay.
CN202110282121.XA 2021-03-16 2021-03-16 Apple purchase payment method and device Pending CN112967051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110282121.XA CN112967051A (en) 2021-03-16 2021-03-16 Apple purchase payment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110282121.XA CN112967051A (en) 2021-03-16 2021-03-16 Apple purchase payment method and device

Publications (1)

Publication Number Publication Date
CN112967051A true CN112967051A (en) 2021-06-15

Family

ID=76279462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110282121.XA Pending CN112967051A (en) 2021-03-16 2021-03-16 Apple purchase payment method and device

Country Status (1)

Country Link
CN (1) CN112967051A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113627942A (en) * 2021-06-29 2021-11-09 福建野小兽健康科技有限公司 Method and system for automatically supplementing subscription payment of apples
CN115049385A (en) * 2022-05-24 2022-09-13 福建天晴在线互动科技有限公司 Method and system for ensuring purchase, recharge and account arrival of apples through online server

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107730366A (en) * 2017-10-30 2018-02-23 江西博瑞彤芸科技有限公司 A kind of information processing method of pay invoice management
CN108520404A (en) * 2018-03-10 2018-09-11 北京酷我科技有限公司 A kind of paying centres iOS strategy
US20190213648A1 (en) * 2017-04-05 2019-07-11 Tencent Technology (Shenzhen) Company Limited Information processing method and device and storage medium
CN111199401A (en) * 2020-01-07 2020-05-26 北京字节跳动网络技术有限公司 Information processing method, device, terminal, server and storage medium
CN111507724A (en) * 2019-01-31 2020-08-07 上海哔哩哔哩科技有限公司 Payment verification method and system
CN111709730A (en) * 2020-06-18 2020-09-25 天津洪恩完美未来教育科技有限公司 Virtual commodity payment method, device, server and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190213648A1 (en) * 2017-04-05 2019-07-11 Tencent Technology (Shenzhen) Company Limited Information processing method and device and storage medium
CN107730366A (en) * 2017-10-30 2018-02-23 江西博瑞彤芸科技有限公司 A kind of information processing method of pay invoice management
CN108520404A (en) * 2018-03-10 2018-09-11 北京酷我科技有限公司 A kind of paying centres iOS strategy
CN111507724A (en) * 2019-01-31 2020-08-07 上海哔哩哔哩科技有限公司 Payment verification method and system
CN111199401A (en) * 2020-01-07 2020-05-26 北京字节跳动网络技术有限公司 Information processing method, device, terminal, server and storage medium
CN111709730A (en) * 2020-06-18 2020-09-25 天津洪恩完美未来教育科技有限公司 Virtual commodity payment method, device, server and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黑马程序员编著 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113627942A (en) * 2021-06-29 2021-11-09 福建野小兽健康科技有限公司 Method and system for automatically supplementing subscription payment of apples
CN115049385A (en) * 2022-05-24 2022-09-13 福建天晴在线互动科技有限公司 Method and system for ensuring purchase, recharge and account arrival of apples through online server
CN115049385B (en) * 2022-05-24 2024-05-28 福建天晴在线互动科技有限公司 Method and system for guaranteeing in-apple purchase recharging and account checking through online server

Similar Documents

Publication Publication Date Title
EP3079326B1 (en) Network payment method, apparatus and system
US20120290468A1 (en) Method and apparatus for secure payment using a network-connectable device
US20150206131A1 (en) System and method for adaptive response protocol
CN106296175A (en) Method of payment, merchant tenninal, bank transaction system, client terminal and system
WO2014012407A1 (en) Payment method and device
CN112967051A (en) Apple purchase payment method and device
CN106779673B (en) Electronic payment method and system
CN104994064A (en) Authorization authentication method and system based on client end plug-in
WO2016155572A1 (en) Service processing method, terminal and server
CN109559102A (en) A kind of polymerization method of payment and terminal
CN111857888A (en) Transaction processing method and device
CN111415146A (en) Resource data processing method, device and equipment
US12039527B2 (en) Service providing system, service providing device, service providing method, and service providing program
AU2015253164A1 (en) Method and system for authentication token generation
CN111695985A (en) System and method for processing voluntary deposit service of accumulation fund
CN111147358A (en) Security authentication method and device based on instant messaging software
TW202405714A (en) Payment method, apparatus and system based on 5G messaging application, and device and medium
CN115829556A (en) Payment method, device, apparatus, medium and product
CN113988844A (en) Service subscription method, device and system
CN111415245B (en) Account opening method and device
CN112819479A (en) Order state processing method and device, storage medium and server
CN114267123B (en) Intelligent NFC card for gas meter and communication processing method thereof
CN104978660A (en) Information processing method and information processing system
CN109542436A (en) Data processing method, device, medium and electronic equipment
CN112311838B (en) Business asynchronous interaction method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210615