WO2024032356A1 - Payment processing method and apparatus based on prepayment voucher - Google Patents

Payment processing method and apparatus based on prepayment voucher Download PDF

Info

Publication number
WO2024032356A1
WO2024032356A1 PCT/CN2023/108743 CN2023108743W WO2024032356A1 WO 2024032356 A1 WO2024032356 A1 WO 2024032356A1 CN 2023108743 W CN2023108743 W CN 2023108743W WO 2024032356 A1 WO2024032356 A1 WO 2024032356A1
Authority
WO
WIPO (PCT)
Prior art keywords
payment
prepaid
voucher
platform
amount
Prior art date
Application number
PCT/CN2023/108743
Other languages
French (fr)
Chinese (zh)
Inventor
施萍
徐曙怡
钟颖然
何炜
胡容海
李晓兵
宋伟伟
王慰骏
Original Assignee
支付宝(杭州)信息技术有限公司
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 支付宝(杭州)信息技术有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2024032356A1 publication Critical patent/WO2024032356A1/en

Links

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/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • 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/22Payment schemes or models
    • G06Q20/28Pre-payment schemes, e.g. "pay before"
    • 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

Definitions

  • This document relates to the field of data processing technology, and in particular to a payment processing method and device based on prepaid vouchers.
  • online scenarios such as online payment, service reservation and other online processing methods.
  • Online scenarios are becoming more and more frequent and convenient, and they are becoming more and more convenient.
  • application scope and application scenarios of online processing methods become more and more extensive, the diverse demands of all parties for online processing are also getting higher and higher, which poses a higher test to online service providers.
  • One or more embodiments of this specification provide a payment processing method based on a prepaid voucher, including: after obtaining a payment request for a prepaid voucher, sending payment information to a service platform corresponding to the prepaid voucher. Receive the payment order submitted by the service platform after verifying the resources of the payment information. Determine the payment method of the payment order, and perform payment processing on the payment order according to the payment method. The payment result is synchronized with the service platform to deduct the resource amount of the prepaid voucher.
  • One or more embodiments of this specification provide another payment processing method based on a prepaid voucher, including: performing resource verification on the prepaid voucher based on the payment information sent by the payment platform for the prepaid voucher. Determine the reserved resource amount of the prepaid voucher according to the write-off result, and create a payment order based on the reserved resource amount and submit it to the payment platform. Receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepaid voucher.
  • One or more embodiments of this specification provide a payment processing device based on a prepaid voucher, including: a payment information sending module configured to, after obtaining a payment request for a prepaid voucher, send the payment request to the service platform corresponding to the prepaid voucher. Send payment information.
  • the payment order receiving module is configured to receive the payment order submitted by the service platform after verifying the resources of the payment information.
  • the payment processing module is configured to determine the payment method of the payment order, and perform payment processing on the payment order according to the payment method.
  • the payment result synchronization module is configured to synchronize the payment result with the service platform to reduce the resource amount of the prepaid voucher.
  • One or more embodiments of this specification provide another payment processing device based on a prepaid voucher, including: a resource verification module configured to perform resource verification on the prepaid voucher based on the payment information sent by the payment platform for the prepaid voucher. pin.
  • the payment order creation module is configured to determine the reserved resource amount of the prepaid voucher according to the write-off result, and create a payment order based on the reserved resource amount and submit it to the payment platform.
  • the resource amount deduction module is configured to receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepayment voucher.
  • One or more embodiments of the present specification provide a payment processing device based on a prepaid voucher, including: a processor; and a memory configured to store computer-executable instructions that, when executed, cause the The processor: after obtaining the payment request for the prepaid voucher, send payment information to the service platform corresponding to the prepaid voucher. Receive the payment order submitted by the service platform after verifying the resources of the payment information. Determine the payment method of the payment order, and perform payment processing on the payment order according to the payment method. The payment result is synchronized with the service platform to deduct the resource amount of the prepaid voucher.
  • One or more embodiments of the present specification provide another payment processing device based on a prepaid voucher, including: a processor; and a memory configured to store computer-executable instructions that, when executed, cause The processor: performs resource write-off of the prepaid voucher based on the payment information sent by the payment platform for the prepaid voucher. Determine the reserved resource amount of the prepaid voucher according to the write-off result, and create a payment order based on the reserved resource amount and submit it to the payment platform. Receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepaid voucher.
  • One or more embodiments of this specification provide a storage medium for storing computer-executable instructions.
  • the computer-executable instructions When executed by a processor, the computer-executable instructions implement the following process: after obtaining a payment request for a prepaid voucher, Send payment information to the service platform corresponding to the prepaid voucher. Receive the payment order submitted by the service platform after verifying the resources of the payment information. Determine the payment method of the payment order, and perform payment processing on the payment order according to the payment method. The payment result is synchronized with the service platform to deduct the resource amount of the prepaid voucher.
  • One or more embodiments of this specification provide another storage medium for storing computer-executable instructions, When executed by the processor, the computer-executable instructions implement the following process: based on the payment information sent by the payment platform for the prepayment voucher, perform resource write-off of the prepayment voucher. Determine the reserved resource amount of the prepaid voucher according to the write-off result, and create a payment order based on the reserved resource amount and submit it to the payment platform. Receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepaid voucher.
  • Figure 1 is a processing flow chart of a payment processing method based on prepaid vouchers provided by one or more embodiments of this specification;
  • Figure 2 is a sequence diagram of a payment processing method based on prepaid vouchers applied to merchant stored-value card scenarios provided by one or more embodiments of this specification;
  • Figure 3 is a processing flow chart of another payment processing method based on prepaid vouchers provided by one or more embodiments of this specification;
  • Figure 4 is a schematic diagram of a payment processing device based on prepaid vouchers provided by one or more embodiments of this specification;
  • Figure 5 is a schematic diagram of another payment processing device based on prepaid vouchers provided by one or more embodiments of this specification;
  • Figure 6 is a schematic structural diagram of a payment processing device based on a prepaid voucher provided by one or more embodiments of this specification;
  • Figure 7 is a schematic structural diagram of another payment processing device based on prepaid vouchers provided by one or more embodiments of this specification.
  • An embodiment of a payment processing method based on a prepaid voucher provided in this specification starts from the payment request of the prepaid voucher, sends the corresponding payment information to the service platform of the prepaid voucher, and after receiving Based on the payment order submitted by the service platform, first determine the payment method of the payment order, then perform payment processing on the payment order according to the determined payment method, and provide the payment result obtained by the payment processing to the service platform to prepay according to the payment result.
  • the resource amount of the voucher is deducted to ensure the consistency of the resource amount of the prepaid voucher and the order payment data.
  • the payment methods of the prepaid voucher are more diversified, and the actual payment of the prepaid voucher by users is more flexible.
  • this embodiment provides a payment processing method based on a prepaid voucher.
  • the method specifically includes steps S102 to S108.
  • Step S102 After obtaining the payment request for the prepaid voucher, send payment information to the service platform corresponding to the prepaid voucher.
  • the prepaid voucher described in this embodiment refers to a voucher issued through a specific carrier and form that can be used to purchase goods or services at a specific institution. Moreover, the voucher often has the characteristic of recharging first and then using the voucher for consumption, so it is called prepaid. certificate.
  • the prepaid voucher includes a physical prepaid voucher using physical media as a carrier, and/or an electronic prepaid voucher using an electronic voucher as a carrier. For example, physical stored-value cards, electronic stored-value cards, etc.
  • the service platform includes a processing platform of a service institution that performs commodity consumption and/or service consumption based on the prepaid voucher, or a service party that performs commodity consumption and/or service consumption based on the prepaid voucher; the payment The request includes a request for payment for the user's consumption of goods and/or services at the service institution.
  • this embodiment binds one or more prepaid vouchers of the user to one user.
  • the prepaid vouchers include: binding with the user account that submitted the payment request Any one of at least one prepaid voucher in the relationship; wherein the binding relationship is established after the user and the payment platform sign a payment agreement for the prepaid voucher.
  • the payment processing method based on the prepaid voucher does not involve the payment process.
  • the processing process of the prepaid resources corresponding to the prepaid voucher only involves the processing process of the available resource amount of the prepaid voucher.
  • the resource account corresponding to the prepaid voucher is set on the service platform, and the prepaid resources in the resource account are provided by The service platform is managed.
  • this embodiment provides two implementation methods for payment request submission, and any one can be selected during the specific execution process.
  • the implementation method submits the payment request.
  • the first implementation method is that the service platform scans the payment identifier of the user to submit the payment request.
  • the payment request is submitted after the service platform scans the payment identifier of the user account.
  • a payment for the prepaid voucher can be initiated based on the payment code of the user account. Pay, and then submit a payment request for the prepaid voucher.
  • the payment identifier may be the first payment code of the user account on the payment platform.
  • the first payment code refers to the payment code of the user account itself.
  • the first payment code can also be a payment code generated by the payment application of the payment platform; in addition, the payment identification can also be a payment code specially created for at least one prepaid voucher. By creating the payment code, you can initiate a payment for any of the at least one prepaid voucher. Pay a prepaid voucher, and then submit a payment request for any prepaid voucher.
  • the payment identification includes: the first payment code of the user account on the payment platform, and/or a second payment code created based on the at least one prepaid voucher; wherein the first payment code is The payment application of the payment platform is accessed, and the second payment code is accessed through a subroutine of the payment application.
  • the service identification field can be configured in the payment request submitted by the service platform.
  • the service identification field is used to record the identification information of the service platform or service organization.
  • the payment platform After receiving the payment request, the payment platform will, based on the identification carried in the payment request, Information, among the prepaid vouchers that are bound to the user account, query whether there is a prepaid voucher for the service institution or service platform to which the identification information belongs. If it exists, determine the priority to use the queried prepaid voucher for payment, and execute the payment.
  • the process of sending payment information to the service platform corresponding to the prepaid voucher; if it does not exist, the corresponding payment reminder is returned to the service platform, or the payment response processing of the payment request is performed based on the account resources of the user account.
  • the service type field or payment type field can be included in the payment request.
  • the service identification field is used to record the service type information. Or payment type information.
  • the payment platform After receiving the payment request, the payment platform will query whether there is any service type information or payment type in the prepaid voucher that is bound to the user account based on the service type information or payment type information carried in the payment request. If a prepayment voucher with matching information exists, it is determined that the queried prepayment voucher will be used first for payment, and the process of sending payment information to the service platform corresponding to the prepayment voucher is executed; if it does not exist, the corresponding information is returned to the service platform.
  • Payment reminder or, after receiving the payment request, the payment platform, based on the service type information or payment type information carried in the payment request, queries the prepayment voucher of the service platform in the prepayment voucher that is bound to the user account, and detects Whether there is a prepayment voucher matching the service type information or payment type information among the prepayment vouchers of the service platform. If there is a prepayment voucher matching the service type information or payment type information, it is determined that the prepayment voucher matching the service type information or payment type information is used for payment first, and the payment is executed to the The process of sending payment information to the service platform corresponding to the prepaid voucher; if it does not exist, the corresponding payment reminder is returned to the service platform.
  • the second implementation method is for the user to scan the payment code of the service platform to submit a payment request.
  • the payment request is submitted after the payment application of the payment platform scans the payment code of the service platform, or after The sub-application of the payment application scans the payment code of the service platform and submits it.
  • the service identification field, service type field or payment type field can be set in the payment request.
  • the service identification field is used to record the identification information of the service platform obtained by decoding the payment code of the service platform after scanning it. Or, it is used to record the service type information or payment type information of the service platform obtained by scanning the payment code of the service platform and decoding it.
  • the service identification field, service type field or payment type field can also record the identification information, service type information or payment type information entered by the user during the payment request submission process.
  • Step S104 Receive the payment order submitted by the service platform after performing resource verification on the payment information.
  • the payment information in this embodiment carries at least the payment amount.
  • the payment information may also carry the following At least one of the above: voucher information of prepaid vouchers, consumption information of consumer goods or services, and user information.
  • the data information carried in the payment information can be read from the payment request or obtained from the service platform; the data information carried in the payment information can be read from the payment request.
  • the payment request may carry at least the payment amount.
  • the payment request may also carry at least one of the following: voucher information of prepaid vouchers, consumption information of consumer goods or consumer services, and user information. .
  • the service platform performs resource write-off of the prepaid voucher based on the payment information, and determines the pre-occupied resource amount of the prepaid voucher based on the write-off result. , and create a payment order based on the reserved resource amount and submit it to the payment platform.
  • the amount of pre-occupied resources refers to the amount of resources actually frozen by the current service platform for the prepayment voucher for subsequent deductions.
  • the amount of pre-occupied resources can also be regarded as the actual payment amount determined by the service platform based on the payment information. .
  • the resource write-off includes detecting whether the payment amount carried by the payment information is less than or equal to the available resource amount of the prepayment voucher. If the write-off result is that the write-off is passed, the payment amount is determined as the The amount of pre-occupied resources; if the write-off result is that the write-off fails, the amount of available resources will be determined as the amount of pre-occupied resources.
  • the above-mentioned step of receiving a payment order submitted after the service platform performs resource verification on the payment information can also be replaced by receiving a payment order submitted by the service platform; optionally, the payment order is recorded with
  • the amount of pre-occupied resources is determined in the following way: if the payment amount carried by the payment information is less than or equal to the amount of available resources in the pre-payment voucher, the payment amount is determined as the pre-occupied resources. amount; if the payment amount carried by the payment information is greater than the amount of available resources in the prepaid voucher, the amount of available resources is determined as the amount of reserved resources.
  • Step S106 Determine the payment method of the payment order, and perform payment processing on the payment order according to the payment method.
  • the payment method of the payment order is determined, and the payment processing of the payment order is performed according to the payment method. Specifically, the payment method of the payment order is determined. In the process of the method, the payment method of the payment order is determined based on the reserved resource amount recorded in the payment order.
  • the payment method described in this embodiment refers to which payment channel or payment channels are used to pay for the payment order.
  • the payment method includes using the payment channel corresponding to the prepaid voucher to pay the payment order. Since the payment processing for payment orders under this method does not involve the payment of specific resources, but only involves the processing of the resource amount of the prepaid voucher, this payment method is called accounting payment; in addition, the payment method also includes the use of The payment channel corresponding to the prepaid voucher and the payment channel of the corresponding resource are combined to pay for the payment order, so this payment method is called combined payment.
  • this embodiment provides the following two optional implementation methods for determining the payment method based on the amount of reserved resources recorded in the payment order.
  • determining the payment method of the payment order includes: if the amount of reserved resources recorded in the payment order is equal to the payment amount carried in the payment request, determining the The payment method is bill payment.
  • determining the payment method of the payment order includes: if the amount of reserved resources recorded in the payment order is less than the payment amount carried by the payment request, determining the payment The method is combined payment; the combined payment includes accounting payment and resource payment.
  • this embodiment in the process of payment processing of the payment order according to the payment method, this embodiment provides two payment methods respectively corresponding to the above two optional implementation methods. Processing.
  • payment processing of the payment order according to the payment method includes: based on the The pre-occupied resource amount is used to perform accounting payment of the payment order and obtain the payment result.
  • the accounting payment includes updating the order status of the payment order to a paid status, and generating a payment bill for the payment order.
  • payment processing of the payment order according to the payment method includes: based on the pre-occupied resource amount Perform accounting payment of the payment order, and perform resource payment of the payment order based on the remaining resource amount, and use the accounting payment result and the resource payment result as the payment result.
  • the remaining resource amount is the difference between the payment amount carried in the payment request and the reserved resource amount.
  • the resource payment includes transferring resources corresponding to the remaining resource amount from the user account to the resource account of the service platform.
  • Step S108 Synchronize the payment results to the service platform.
  • the payment result refers to the payment result obtained after the payment processing of the payment order, that is, the payment result of the payment order. Specifically, the payment result is a payment success result or a payment result carrying payment success information. .
  • the payment result to the service platform will be a successful payment result if accounting payment is successful; if combined payment is used to process the payment
  • the payment result to the service platform is a successful payment result of successful resource payment and successful accounting payment.
  • the purpose of synchronizing the payment result to the service platform is to remind the service platform to deduct the resource amount of the prepaid voucher, so as to ensure the data consistency of the payment processing of the prepaid voucher. Therefore, The above step of synchronizing the payment result to the service platform can also be replaced by synchronizing the payment result to the service platform to deduct the resource amount of the prepaid voucher.
  • deducting the resource amount of the prepaid voucher includes: deducting the reserved resource amount from the available resource amount of the prepaid voucher.
  • a resource amount query interface can also be opened for prepaid vouchers.
  • the following method is used to implement resource amount query of prepaid vouchers: after obtaining After receiving the query request for the prepaid voucher, forward the query request to the service platform; receive the query result returned by the service platform carrying the amount of available resources of the prepaid voucher.
  • the service platform may no longer perform resource write-off for the prepaid voucher.
  • the above-mentioned receiving service platform will check the resource amount of the prepaid voucher.
  • the step of submitting a payment order after verifying the payment information for resources can also be replaced by the process of receiving the payment order submitted by the service platform, and combined with other processes provided by this embodiment to create a new implementation.
  • the loss reporting process, expiry reminder process and/or voucher destruction process of the prepaid voucher can also be implemented in the following manner: after obtaining After receiving the loss report request for the prepaid voucher, forward the loss report request to the service platform; receive the loss report result carrying the permission freezing information of the prepaid voucher returned by the service platform; wherein the permission freezing information is in Generate the prepaid voucher after freezing the authority; and/or, after obtaining the cancellation request for the prepaid voucher, forward the cancellation request to the service platform; receive the request returned by the service platform carrying the prepaid voucher.
  • the cancellation result of the cancellation information of the voucher wherein the cancellation information is generated after the cancellation processing of the prepaid voucher; and/or, based on the validity period of the prepaid voucher obtained from the service platform query, the cancellation information is generated Expiration date reminder information is sent to the user.
  • the payment processing method based on prepaid vouchers provided in this embodiment is applied to the payment platform, and the payment processing method based on prepaid vouchers provided in the following method embodiments is applied to the service platform, and the two cooperate with each other during the execution process.
  • this embodiment please refer to the corresponding content of the following embodiment.
  • this embodiment please refer to this embodiment.
  • the following takes the application of a payment processing method based on a prepaid voucher provided in this embodiment in a merchant stored-value card scenario as an example to further explain the payment processing method based on a prepaid voucher provided in this embodiment. See Figure 2.
  • the payment processing method based on prepaid vouchers in the merchant stored-value card scenario specifically includes the following steps.
  • Step S202 After obtaining the payment request for the stored-value card, send payment information to the merchant corresponding to the stored-value card;
  • Step S210 If the reserved amount recorded in the payment order is equal to the payment amount carried in the payment request, the payment method is determined to be accounting payment.
  • the pre-occupied amount recorded in the payment order is 100 yuan
  • the payment amount carried in the payment request is also 100 yuan, which means that the stored-value card can meet the payment of the current payment order. You only need to deduct 100 yuan from the amount of the stored-value card. Yes, so payment by account is used.
  • Step S212 Perform accounting payment of the payment order based on the reserved amount, and obtain the payment result.
  • Step S214 Synchronize the payment results with the merchant to reduce the amount of the stored-value card.
  • Step S218 If the reserved amount recorded in the payment order is less than the payment amount carried in the payment request, the payment method is determined to be combined payment.
  • combined payment includes accounting payment and resource payment.
  • the remaining amount of the stored-value card is only 100 yuan, and the payment amount carried in the payment request is 120 yuan, which means that the stored-value card cannot meet the payment of the current payment order.
  • the 20 yuan that is not enough to pay can only be paid through other channels. To make the payment, you can use the fund account on the payment platform to pay the 20 yuan, so a combined payment is used.
  • Step S220 Perform accounting payment of the payment order based on the reserved amount to obtain the accounting payment result, and perform fund payment of the payment order based on the remaining amount to obtain the fund payment result.
  • Step S222 Synchronize the accounting payment result and the fund payment result to the merchant to deduct the amount of the stored-value card.
  • This specification also provides another example of a payment processing method based on a prepaid voucher as follows: Referring to Figure 3 , this embodiment provides a payment processing method based on a prepaid voucher. The method specifically includes steps S302 to S306.
  • Step S302 Based on the payment information sent by the payment platform for the prepaid voucher, perform resource verification of the prepaid voucher.
  • the prepaid voucher described in this embodiment refers to a voucher issued through a specific carrier and form that can be used to purchase goods or services at a specific institution. Moreover, the voucher often has the characteristic of recharging first and then using the voucher for consumption, so it is called prepaid. certificate.
  • the prepaid voucher includes a physical prepaid voucher using physical media as a carrier, and/or an electronic prepaid voucher using an electronic voucher as a carrier. For example, physical stored-value cards, electronic stored-value cards, etc.
  • users may purchase different prepaid vouchers through different channels.
  • the user When the user has multiple prepaid vouchers, when using different prepaid vouchers to make consumption payments, the user needs to bring the corresponding prepaid voucher, or use each prepaid voucher. Payment is made through the corresponding payment channel of the voucher, which will bring great difficulty for the user to make payment using the prepaid voucher.
  • this embodiment binds one or more prepaid vouchers of the user to a user account, with the help of the user
  • the account implements consumption payments for different prepaid vouchers, thereby improving the flexibility of users to use prepaid vouchers for consumption payments;
  • the prepaid vouchers include: at least one prepaid voucher that is bound to the user account that submitted the payment request Any one of the above; wherein the binding relationship is established after the user signs a payment agreement for a prepaid voucher with the payment platform.
  • the payment request is submitted after the service platform scans the payment identifier of the user account.
  • a payment for the prepaid voucher can be initiated based on the payment code of the user account. Pay, and then submit a payment request for the prepaid voucher.
  • the payment identifier may be the first payment code of the user account on the payment platform.
  • the first payment code refers to the payment code of the user account itself.
  • the first payment code can also be a payment code generated by the payment application of the payment platform; in addition, the payment identification can also be a payment code specially created for at least one prepaid voucher. By creating the payment code, you can initiate a payment for any of the at least one prepaid voucher. Pay a prepaid voucher, and then submit a payment request for any prepaid voucher.
  • the payment identification includes: the first payment code of the user account on the payment platform, and/or a second payment code created based on the at least one prepaid voucher; wherein the first payment code is The payment application of the payment platform is accessed, and the second payment code is accessed through a subroutine of the payment application.
  • the service platform includes a processing platform of a service institution that performs commodity consumption and/or service consumption based on the prepaid voucher, or a service party that performs commodity consumption and/or service consumption based on the prepaid voucher; the payment The request includes a request for payment for the user's consumption of goods and/or services at the service institution.
  • the payment processing method based on the prepaid voucher does not involve the payment process.
  • the processing process of the prepaid resources corresponding to the prepaid voucher only involves the processing process of the available resource amount of the prepaid voucher.
  • the resource account corresponding to the prepaid voucher is set on the service platform, and the prepaid resources in the resource account are provided by The service platform is managed.
  • the service identification field can be configured in the payment request submitted by the service platform.
  • the service identification field is used to record the identification information of the service platform or service organization.
  • the payment platform After receiving the payment request, the payment platform will, based on the identification carried in the payment request, Information, among the prepaid vouchers that are bound to the user account, query whether there is a prepaid voucher for the service institution or service platform to which the identification information belongs. If it exists, determine the priority to use the queried prepaid voucher for payment, and execute the payment.
  • the process of sending payment information to the service platform corresponding to the prepaid voucher; if it does not exist, the corresponding payment reminder is returned to the service platform, or the payment response processing of the payment request is performed based on the account resources of the user account.
  • the service type field or payment type field can be included in the payment request.
  • the service identification field is used to record the service type information. Or payment type information.
  • the payment platform After receiving the payment request, the payment platform will query whether there is any service type information or payment type in the prepaid voucher that is bound to the user account based on the service type information or payment type information carried in the payment request.
  • a prepayment voucher with matching information it is determined that the queried prepayment voucher will be used first for payment, and the process of sending payment information to the service platform corresponding to the prepayment voucher is executed; If it does not exist, the corresponding payment reminder will be returned to the service platform; or, after receiving the payment request, the payment platform will, based on the service type information or payment type information carried in the payment request, in the prepayment voucher that is bound to the user account.
  • Query the prepaid voucher of the service platform and detect whether there is a prepaid voucher matching the service type information or payment type information in the service platform. If it exists, determine that the priority usage matches the service type information or payment type information. Pay with the prepaid voucher, and execute the process of sending payment information to the service platform corresponding to the prepaid voucher; if it does not exist, return the corresponding payment reminder to the service platform.
  • the resource verification of the prepayment voucher includes: detecting whether the payment amount carried by the payment information is less than or equal to the The amount of available resources for the prepaid voucher; if yes, determine the write-off result to be write-off passed; if not, determine the write-off result to be write-off failed.
  • Step S304 Determine the reserved resource amount of the prepaid voucher according to the write-off result, and create a payment order based on the reserved resource amount and submit it to the payment platform.
  • the amount of reserved resources mentioned in this embodiment refers to the amount of resources actually frozen by the current service platform for the prepayment voucher for subsequent deductions.
  • the amount of reserved resources can also be regarded as the actual payment determined by the service platform based on the payment information. amount.
  • the resource write-off includes detecting whether the payment amount carried by the payment information is less than or equal to the available resource amount of the prepayment voucher. If the write-off result is that the write-off is passed, the payment amount is determined as the The amount of pre-occupied resources; if the write-off result is that the write-off fails, the amount of available resources will be determined as the amount of pre-occupied resources.
  • the prepaid voucher of the prepaid voucher is determined based on the write-off result.
  • the amount of resources occupied is achieved in the following manner: if the write-off result is that the write-off is passed, the payment amount is determined as the amount of pre-occupied resources; if the write-off result is that the write-off is not passed, the amount of available resources is determined as The amount of reserved resources.
  • Step S306 Receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepaid voucher.
  • the payment platform determines the payment method of the payment order, and performs payment processing on the payment order according to the payment method, specifically in the process of determining the payment method of the payment order. , the payment method of the payment order is determined based on the reserved resource amount recorded in the payment order.
  • the payment method described in this embodiment refers to which payment channel or payment channels are used to pay for the payment order.
  • the payment method includes using the payment channel corresponding to the prepaid voucher to pay the payment order. Since the payment processing for payment orders under this method does not involve the payment of specific resources, but only involves the processing of the resource amount of the prepaid voucher, this payment method is called accounting payment; in addition, the payment method also includes the use of The payment channel corresponding to the prepaid voucher and the payment channel of the corresponding resource are combined to pay for the payment order, so this payment method is called combined payment.
  • the payment method is determined to be accounting payment; if the payment If the amount of reserved resources in the order record is less than the payment amount carried in the payment request, it is determined that the payment method is combined payment; the combined payment includes accounting payment and resource payment.
  • the received payment result of the payment order synchronized by the payment platform refers to the payment result obtained by the payment platform processing the payment order according to the payment method, specifically in the payment order.
  • the payment method is accounting payment
  • accounting payment of the payment order is performed based on the reserved resource amount, and the payment result is obtained.
  • the accounting payment includes updating the order status of the payment order to a paid status, and generating a payment bill for the payment order.
  • the accounting payment of the payment order is made based on the reserved resource amount
  • the resource payment of the payment order is made based on the remaining resource amount
  • the accounting payment result and the resource payment result are regarded as all Describe the payment results.
  • the remaining resource amount is the difference between the payment amount carried in the payment request and the reserved resource amount.
  • the resource payment includes transferring resources corresponding to the remaining resource amount from the user account to the resource account of the service platform.
  • the payment platform synchronizes the payment results, and its purpose is to remind the service platform that it can perform the
  • the resource amount of the prepaid voucher is deducted to ensure the data consistency of the payment processing of the prepaid voucher.
  • the resource amount of the prepaid voucher is deducted, including: The amount of reserved resources will be deducted from the amount of available resources in the above-mentioned prepaid voucher.
  • a resource amount query interface can also be opened for prepaid vouchers.
  • the following method is used to implement resource amount query of prepaid vouchers: receive all The query request of the prepaid voucher forwarded by the payment platform; query the available resource amount of the prepaid voucher, and return the query result carrying the available resource amount to the payment platform.
  • the service platform can also no longer perform resource write-off for the prepaid voucher.
  • the above-mentioned based on the payment platform sent for the prepaid voucher payment information, perform the resource write-off step of the prepaid voucher, and determine the pre-occupied resource amount of the pre-paid voucher based on the write-off result, and create a payment order based on the pre-occupied resource amount and submit it to the payment platform can also be replaced by: based on the payment information sent by the payment platform for the prepaid voucher, create a payment order and submit this process to the payment platform, and combine the new implementation with other processes provided by this embodiment.
  • the loss reporting process and/or the voucher destruction process of the prepaid voucher can also be implemented in the following manner: receiving the payment platform forwarding a request to report the loss of the prepaid voucher; freeze the access rights of the prepaid voucher, and return the loss reporting result carrying the permission freezing information obtained by freezing to the payment platform; and/or receive the prepaid voucher forwarded by the payment platform Cancellation request; transfer the account resources in the resource account of the prepaid voucher to the user's resource account, and cancel the prepaid voucher; return a cancellation result carrying resource transfer information and cancellation information to the payment platform.
  • the following takes the application of a payment processing method based on a prepaid voucher provided in this embodiment in a merchant stored-value card scenario as an example to further explain the payment processing method based on a prepaid voucher provided in this embodiment. See Figure 2.
  • the payment processing method based on prepaid vouchers in the merchant stored-value card scenario specifically includes the following steps.
  • Step S204 Based on the payment information sent by the payment platform for the stored-value card, the amount of the stored-value card is written off.
  • Step S206 Determine the pre-occupied amount of the stored-value card based on the write-off result, create a payment order based on the pre-occupied amount, and submit it to the payment platform.
  • Step S216 Receive the payment result of the payment order synchronized by the payment platform, and deduct the amount of the stored-value card.
  • Step S224 Receive the accounting payment result and the fund payment result synchronized by the payment platform, and deduct the amount of the stored-value card based on the accounting payment result.
  • a payment processing device based on a prepaid voucher provided in this specification is as follows: In the above embodiment, a payment processing method based on a prepaid voucher is provided. Correspondingly, a payment processing method based on a prepaid voucher is also provided. The payment processing device is described below with reference to the accompanying drawings.
  • FIG. 4 a schematic diagram of a payment processing device based on a prepaid voucher provided in this embodiment is shown.
  • the description is relatively simple. For relevant parts, please refer to the corresponding description of the method embodiment provided above.
  • the device embodiments described below are merely illustrative.
  • This embodiment provides a payment processing device based on a prepaid voucher, including: a payment information sending module 402 configured to, after obtaining a payment request for a prepaid voucher, send payment information to the service platform corresponding to the prepaid voucher; payment The order receiving module 404 is configured to receive the payment order submitted by the service platform after verifying the resources of the payment information; the payment processing module 406 is configured to determine the payment method of the payment order and process the payment according to the payment method. The payment processing is performed on the payment order; the payment result synchronization module 408 is configured to synchronize the payment result with the service platform to deduct the resource amount of the prepaid voucher.
  • Another embodiment of a payment processing device based on a prepaid voucher provided in this specification is as follows: In the above embodiment, another payment processing method based on a prepaid voucher is provided, and correspondingly, another payment processing method based on a prepaid voucher is provided.
  • the payment processing device based on the prepaid voucher will be described below with reference to the accompanying drawings.
  • FIG. 5 a schematic diagram of a payment processing device based on a prepaid voucher provided in this embodiment is shown.
  • the description is relatively simple. For relevant parts, please refer to the corresponding description of the method embodiment provided above.
  • the device embodiments described below are merely illustrative.
  • This embodiment provides a payment processing device based on a prepaid voucher, including: a resource write-off module 502, configured to perform resource write-off of the prepaid voucher based on the payment information sent by the payment platform for the prepaid voucher; a payment order creation module 504 is configured to determine the amount of reserved resources for the prepaid voucher based on the write-off result, and to create a payment order based on the amount of reserved resources and submit it to the payment platform; the resource amount deduction module 506 is configured to receive The payment platform synchronizes the payment results of the payment order and deducts the resource amount of the prepaid voucher.
  • a payment processing device based on a prepaid voucher provided in this specification are as follows: Corresponding to the above-described payment processing method based on a prepaid voucher, based on the same technical concept, one or more embodiments of this specification also provide a payment processing method based on a prepaid voucher. Prepaid voucher-based payment processing equipment. The prepaid voucher-based payment processing equipment is used to execute the above-mentioned prepaid voucher-based payment processing method.
  • Figure 6 shows a prepaid voucher-based payment processing provided by one or more embodiments of this specification. Structural diagram of the equipment.
  • This embodiment provides a payment processing device based on a prepaid voucher, including: As shown in Figure 6, the payment processing device based on a prepaid voucher may vary greatly due to different configurations or performance, and may include one or more Processor 601 and memory 602.
  • the memory 602 may store one or more storage application programs or data. Among them, the memory 602 may be short-term storage or persistent storage.
  • Applications stored in memory 602 may include one or more modules (not shown), each of which may include a sequence of computer-executable instructions in a prepaid voucher-based payment processing device.
  • the processor 601 may be configured to communicate with the memory 602 to execute a series of computer-executable instructions in the memory 602 on the prepaid voucher-based payment processing device.
  • the prepaid voucher-based payment processing device may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input/output interfaces 605, one or more keyboards 606, etc.
  • the payment processing device based on prepaid vouchers includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions in a prepaid voucher-based payment processing device, and may be configured to execute the one or more programs by one or more processors including performing the following computer-executable instructions: Execution instructions: after obtaining the payment request for the prepaid voucher, send payment information to the service platform corresponding to the prepaid voucher; receive the payment order submitted by the service platform after performing resource verification on the payment information; determine the The payment method of the payment order, and the payment processing of the payment order is carried out according to the payment method; the payment result is synchronized with the service platform to deduct the resource amount of the prepaid voucher.
  • FIG. 7 shows a payment processing device based on a prepaid voucher provided by one or more embodiments of this specification. Structural diagram of payment processing equipment.
  • This embodiment provides a payment processing device based on a prepaid voucher, including: As shown in Figure 7, the payment processing device based on a prepaid voucher may vary greatly due to different configurations or performance, and may include one or more Processor 701 and memory 702.
  • the memory 702 may store one or more storage application programs or data. Among them, the memory 702 may be short-term storage or persistent storage.
  • Applications stored in memory 702 may include one or more modules (not shown), each of which may include a sequence of computer-executable instructions in a prepaid voucher-based payment processing device.
  • the processor 701 may be configured to communicate with the memory 702 to execute a series of computer-executable instructions in the memory 702 on the prepaid voucher-based payment processing device.
  • the prepaid voucher based payment processing device may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input/output interfaces 705, one or more keyboards 706, etc.
  • the payment processing device based on prepaid vouchers includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions in a prepaid voucher-based payment processing device, and may be configured to execute the one or more programs by one or more processors including performing the following computer-executable instructions: Execution instructions: Based on the payment information sent by the payment platform for the prepaid voucher, perform resource write-off of the prepaid voucher; determine the pre-occupied resource amount of the pre-paid voucher based on the write-off result, and create a payment order based on the pre-occupied resource amount and submit it to the payment platform; receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepayment voucher.
  • An example of a storage medium provided in this specification is as follows: Corresponding to the above-described payment processing method based on prepaid vouchers and based on the same technical concept, one or more embodiments of this specification also provide a storage medium.
  • the storage medium provided by this embodiment is used to store computer-executable instructions.
  • the computer-executable instructions implement the following process: after obtaining a payment request for a prepaid voucher, send a payment request to the user corresponding to the prepaid voucher.
  • the service platform sends payment information; receives the payment order submitted by the service platform after verifying the resources of the payment information; determines the payment method of the payment order, and performs payment processing on the payment order according to the payment method;
  • the payment result is synchronized with the service platform to deduct the resource amount of the prepaid voucher.
  • Another storage medium embodiment provided in this specification is as follows: Corresponding to the other payment processing method based on prepaid vouchers described above, based on the same technical concept, one or more embodiments of this specification also provide another storage medium.
  • the storage medium provided by this embodiment is used to store computer executable instructions.
  • the computer executable instructions When executed by the processor, the computer executable instructions implement the following process: based on the payment information sent by the payment platform for the prepayment voucher, the resources of the prepayment voucher are processed. Write-off; determine the pre-occupied resource amount of the prepaid voucher according to the write-off result, and create a payment order based on the pre-occupied resource amount and submit it to the payment platform; receive payment of the payment order synchronized by the payment platform As a result, the resource amount of the prepaid voucher is deducted.
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • the controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (eg, software or firmware) executable by the (micro)processor. , logic gates, switches, Application Specific Integrated Circuit (ASIC), programmable logic controllers and embedded microcontrollers.
  • controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, For Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the memory's control logic.
  • the controller in addition to implementing the controller in the form of pure computer-readable program code, the controller can be completely programmed with logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded logic by logically programming the method steps. Microcontroller, etc. to achieve the same function. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the means for implementing various functions can be considered as structures within hardware components as well as software modules implementing the methods.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
  • one or more embodiments of this specification may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk memory, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk memory, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions
  • the device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device.
  • Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • Memory may include non-permanent storage in computer-readable media, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash random access memory
  • Computer-readable media includes both persistent and non-volatile, removable and non-removable media that can be implemented by any method or technology for storage of information.
  • Information may be computer-readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cartridges, disk storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that can be accessed by a computing device.
  • computer-readable media does not include transient computer-readable media (transitory media), such as modulated data signals and carrier waves.
  • One or more embodiments of this specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network.
  • program modules may be located in both local and remote computer storage media including storage devices.

Abstract

Embodiments of the present description provide a payment processing method and apparatus based on a prepayment voucher. The payment processing method based on a prepayment voucher comprises: after a payment request for a prepayment voucher is acquired, sending payment information to a service platform corresponding to the prepayment voucher; receiving a payment order submitted by the service platform after performing resource verification on the payment information; determining a payment mode of the payment order, and performing payment processing on the payment order according to the payment mode; and synchronizing a payment result to the service platform so as to perform deduction of the resource amount of the prepayment voucher.

Description

基于预付凭证的支付处理方法及装置Payment processing method and device based on prepaid voucher 技术领域Technical field
本文件涉及数据处理技术领域,尤其涉及一种基于预付凭证的支付处理方法及装置。This document relates to the field of data processing technology, and in particular to a payment processing method and device based on prepaid vouchers.
背景技术Background technique
随着互联网技术发展和移动终端的普及,越来越多的服务开始向线上场景延伸,比如在线支付、服务预定等线上处理方式,在线上场景变得越来越频繁和便捷,并且随着线上处理方式的应用范围和应用场景越来越广泛,各方对线上处理的多样化需求也越来越高,这对线上服务的提供方提出了更高的考验。With the development of Internet technology and the popularization of mobile terminals, more and more services have begun to extend to online scenarios, such as online payment, service reservation and other online processing methods. Online scenarios are becoming more and more frequent and convenient, and they are becoming more and more convenient. As the application scope and application scenarios of online processing methods become more and more extensive, the diverse demands of all parties for online processing are also getting higher and higher, which poses a higher test to online service providers.
发明内容Contents of the invention
本说明书一个或多个实施例提供了一种基于预付凭证的支付处理方法,包括:在获取到针对预付凭证的支付请求后,向所述预付凭证对应的服务平台发送支付信息。接收所述服务平台对所述支付信息进行资源核销后提交的支付订单。确定所述支付订单的支付方式,并按照所述支付方式对所述支付订单进行支付处理。向所述服务平台同步支付结果,以进行所述预付凭证的资源额扣减。One or more embodiments of this specification provide a payment processing method based on a prepaid voucher, including: after obtaining a payment request for a prepaid voucher, sending payment information to a service platform corresponding to the prepaid voucher. Receive the payment order submitted by the service platform after verifying the resources of the payment information. Determine the payment method of the payment order, and perform payment processing on the payment order according to the payment method. The payment result is synchronized with the service platform to deduct the resource amount of the prepaid voucher.
本说明书一个或多个实施例提供了另一种基于预付凭证的支付处理方法,包括:基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销。根据核销结果确定所述预付凭证的预占资源额,以及基于所述预占资源额创建支付订单并向所述支付平台提交。接收所述支付平台同步的所述支付订单的支付结果,并进行所述预付凭证的资源额扣减。One or more embodiments of this specification provide another payment processing method based on a prepaid voucher, including: performing resource verification on the prepaid voucher based on the payment information sent by the payment platform for the prepaid voucher. Determine the reserved resource amount of the prepaid voucher according to the write-off result, and create a payment order based on the reserved resource amount and submit it to the payment platform. Receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepaid voucher.
本说明书一个或多个实施例提供了一种基于预付凭证的支付处理装置,包括:支付信息发送模块,被配置为在获取到针对预付凭证的支付请求后,向所述预付凭证对应的服务平台发送支付信息。支付订单接收模块,被配置为接收所述服务平台对所述支付信息进行资源核销后提交的支付订单。支付处理模块,被配置为确定所述支付订单的支付方式,并按照所述支付方式对所述支付订单进行支付处理。支付结果同步模块,被配置为向所述服务平台同步支付结果,以进行所述预付凭证的资源额扣减。One or more embodiments of this specification provide a payment processing device based on a prepaid voucher, including: a payment information sending module configured to, after obtaining a payment request for a prepaid voucher, send the payment request to the service platform corresponding to the prepaid voucher. Send payment information. The payment order receiving module is configured to receive the payment order submitted by the service platform after verifying the resources of the payment information. The payment processing module is configured to determine the payment method of the payment order, and perform payment processing on the payment order according to the payment method. The payment result synchronization module is configured to synchronize the payment result with the service platform to reduce the resource amount of the prepaid voucher.
本说明书一个或多个实施例提供了另一种基于预付凭证的支付处理装置,包括:资源核销模块,被配置为基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销。支付订单创建模块,被配置为根据核销结果确定所述预付凭证的预占资源额,以及基于所述预占资源额创建支付订单并向所述支付平台提交。资源额扣减模块,被配置为接收所述支付平台同步的所述支付订单的支付结果,并进行所述预付凭证的资源额扣减。One or more embodiments of this specification provide another payment processing device based on a prepaid voucher, including: a resource verification module configured to perform resource verification on the prepaid voucher based on the payment information sent by the payment platform for the prepaid voucher. pin. The payment order creation module is configured to determine the reserved resource amount of the prepaid voucher according to the write-off result, and create a payment order based on the reserved resource amount and submit it to the payment platform. The resource amount deduction module is configured to receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepayment voucher.
本说明书一个或多个实施例提供了一种基于预付凭证的支付处理设备,包括:处理器;以及,被配置为存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器:在获取到针对预付凭证的支付请求后,向所述预付凭证对应的服务平台发送支付信息。接收所述服务平台对所述支付信息进行资源核销后提交的支付订单。确定所述支付订单的支付方式,并按照所述支付方式对所述支付订单进行支付处理。向所述服务平台同步支付结果,以进行所述预付凭证的资源额扣减。One or more embodiments of the present specification provide a payment processing device based on a prepaid voucher, including: a processor; and a memory configured to store computer-executable instructions that, when executed, cause the The processor: after obtaining the payment request for the prepaid voucher, send payment information to the service platform corresponding to the prepaid voucher. Receive the payment order submitted by the service platform after verifying the resources of the payment information. Determine the payment method of the payment order, and perform payment processing on the payment order according to the payment method. The payment result is synchronized with the service platform to deduct the resource amount of the prepaid voucher.
本说明书一个或多个实施例提供了另一种基于预付凭证的支付处理设备,包括:处理器;以及,被配置为存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器:基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销。根据核销结果确定所述预付凭证的预占资源额,以及基于所述预占资源额创建支付订单并向所述支付平台提交。接收所述支付平台同步的所述支付订单的支付结果,并进行所述预付凭证的资源额扣减。One or more embodiments of the present specification provide another payment processing device based on a prepaid voucher, including: a processor; and a memory configured to store computer-executable instructions that, when executed, cause The processor: performs resource write-off of the prepaid voucher based on the payment information sent by the payment platform for the prepaid voucher. Determine the reserved resource amount of the prepaid voucher according to the write-off result, and create a payment order based on the reserved resource amount and submit it to the payment platform. Receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepaid voucher.
本说明书一个或多个实施例提供了一种存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被处理器执行时实现以下流程:在获取到针对预付凭证的支付请求后,向所述预付凭证对应的服务平台发送支付信息。接收所述服务平台对所述支付信息进行资源核销后提交的支付订单。确定所述支付订单的支付方式,并按照所述支付方式对所述支付订单进行支付处理。向所述服务平台同步支付结果,以进行所述预付凭证的资源额扣减。One or more embodiments of this specification provide a storage medium for storing computer-executable instructions. When executed by a processor, the computer-executable instructions implement the following process: after obtaining a payment request for a prepaid voucher, Send payment information to the service platform corresponding to the prepaid voucher. Receive the payment order submitted by the service platform after verifying the resources of the payment information. Determine the payment method of the payment order, and perform payment processing on the payment order according to the payment method. The payment result is synchronized with the service platform to deduct the resource amount of the prepaid voucher.
本说明书一个或多个实施例提供了另一种存储介质,用于存储计算机可执行指令, 所述计算机可执行指令在被处理器执行时实现以下流程:基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销。根据核销结果确定所述预付凭证的预占资源额,以及基于所述预占资源额创建支付订单并向所述支付平台提交。接收所述支付平台同步的所述支付订单的支付结果,并进行所述预付凭证的资源额扣减。One or more embodiments of this specification provide another storage medium for storing computer-executable instructions, When executed by the processor, the computer-executable instructions implement the following process: based on the payment information sent by the payment platform for the prepayment voucher, perform resource write-off of the prepayment voucher. Determine the reserved resource amount of the prepaid voucher according to the write-off result, and create a payment order based on the reserved resource amount and submit it to the payment platform. Receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepaid voucher.
附图说明Description of drawings
为了更清楚地说明本说明书一个或多个实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本说明书中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in one or more embodiments of this specification, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only used in this specification. For some of the embodiments recorded, those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.
图1为本说明书一个或多个实施例提供的一种基于预付凭证的支付处理方法处理流程图;Figure 1 is a processing flow chart of a payment processing method based on prepaid vouchers provided by one or more embodiments of this specification;
图2为本说明书一个或多个实施例提供的一种应用于商户储值卡场景的基于预付凭证的支付处理方法时序图;Figure 2 is a sequence diagram of a payment processing method based on prepaid vouchers applied to merchant stored-value card scenarios provided by one or more embodiments of this specification;
图3为本说明书一个或多个实施例提供的另一种基于预付凭证的支付处理方法处理流程图;Figure 3 is a processing flow chart of another payment processing method based on prepaid vouchers provided by one or more embodiments of this specification;
图4为本说明书一个或多个实施例提供的一种基于预付凭证的支付处理装置示意图;Figure 4 is a schematic diagram of a payment processing device based on prepaid vouchers provided by one or more embodiments of this specification;
图5为本说明书一个或多个实施例提供的另一种基于预付凭证的支付处理装置示意图;Figure 5 is a schematic diagram of another payment processing device based on prepaid vouchers provided by one or more embodiments of this specification;
图6为本说明书一个或多个实施例提供的一种基于预付凭证的支付处理设备的结构示意图;Figure 6 is a schematic structural diagram of a payment processing device based on a prepaid voucher provided by one or more embodiments of this specification;
图7为本说明书一个或多个实施例提供的另一种基于预付凭证的支付处理设备的结构示意图。Figure 7 is a schematic structural diagram of another payment processing device based on prepaid vouchers provided by one or more embodiments of this specification.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本说明书一个或多个实施例中的技术方案,下面将结合本说明书一个或多个实施例中的附图,对本说明书一个或多个实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本说明书的一部分实施例,而不是全部的实施例。基于本说明书一个或多个实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本文件的保护范围。In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will describe the technical solutions in one or more embodiments of this specification in conjunction with the drawings in one or more embodiments of this specification. The technical solution is described clearly and completely. Obviously, the described embodiments are only a part of the embodiments of this specification, rather than all the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by those of ordinary skill in the art without creative efforts should fall within the protection scope of this document.
本说明书提供的一种基于预付凭证的支付处理方法实施例:本申请提供的基于预付凭证的支付处理方法,从预付凭证的支付请求出发,向预付凭证的服务平台发送相应的支付信息,在接收到服务平台提交的支付订单的基础上,首先确定支付订单的支付方式,然后按照确定的支付方式对支付订单进行支付处理,并将支付处理获得的支付结果向服务平台,以根据支付结果进行预付凭证的资源额扣减,以此来保证预付凭证的资源额与订单支付的数据一致性,同时,使预付凭证的支付方式更加多样化,用户实际针对预付凭证进行支付也更加灵活。An embodiment of a payment processing method based on a prepaid voucher provided in this specification: The payment processing method based on a prepaid voucher provided by this application starts from the payment request of the prepaid voucher, sends the corresponding payment information to the service platform of the prepaid voucher, and after receiving Based on the payment order submitted by the service platform, first determine the payment method of the payment order, then perform payment processing on the payment order according to the determined payment method, and provide the payment result obtained by the payment processing to the service platform to prepay according to the payment result. The resource amount of the voucher is deducted to ensure the consistency of the resource amount of the prepaid voucher and the order payment data. At the same time, the payment methods of the prepaid voucher are more diversified, and the actual payment of the prepaid voucher by users is more flexible.
参照图1,本实施例提供的基于预付凭证的支付处理方法,所述方法具体包括步骤S102至步骤S108。Referring to Figure 1, this embodiment provides a payment processing method based on a prepaid voucher. The method specifically includes steps S102 to S108.
步骤S102,在获取到针对预付凭证的支付请求后,向所述预付凭证对应的服务平台发送支付信息。Step S102: After obtaining the payment request for the prepaid voucher, send payment information to the service platform corresponding to the prepaid voucher.
本实施例所述预付凭证,是指通过特定载体和形式发行的、可以在特定机构购买商品或服务的凭证,并且,该凭证往往具有先充值付费后使用凭证消费的特性,因此称之为预付凭证。可选的,所述预付凭证包括以实体介质为载体的实体预付凭证,和/或,以电子凭证为载体的电子预付凭证。比如实体储值卡、电子储值卡等。The prepaid voucher described in this embodiment refers to a voucher issued through a specific carrier and form that can be used to purchase goods or services at a specific institution. Moreover, the voucher often has the characteristic of recharging first and then using the voucher for consumption, so it is called prepaid. certificate. Optionally, the prepaid voucher includes a physical prepaid voucher using physical media as a carrier, and/or an electronic prepaid voucher using an electronic voucher as a carrier. For example, physical stored-value cards, electronic stored-value cards, etc.
可选的,所述服务平台包括基于所述预付凭证进行商品消费和/或服务消费的服务机构的处理平台,或者基于所述预付凭证进行商品消费和/或服务消费的服务方;所述支付请求包括对用户在服务机构进行的商品消费和/或服务消费进行支付的请求。Optionally, the service platform includes a processing platform of a service institution that performs commodity consumption and/or service consumption based on the prepaid voucher, or a service party that performs commodity consumption and/or service consumption based on the prepaid voucher; the payment The request includes a request for payment for the user's consumption of goods and/or services at the service institution.
实际应用中,用户可能会在不同渠道购买不同的预付凭证,在用户拥有多个预付凭证的情况下,用户在利用不同的预付凭证进行消费支付时,需要携带相应的预付凭证, 或者通过各预付凭证的相应支付渠道进行支付,这样会给用户使用预付凭证进行支付带来很大的难度,针对于此,本实施例通过将用户的一个或者多个预付凭证绑定到一个用户账户,借助用户账户实现对不同预付凭证的消费支付,以此提升用户使用预付凭证进行消费支付的灵活性;可选的,所述预付凭证包括:与提交所述支付请求的用户账户具有绑定关系的至少一个预付凭证中任意一者;其中,所述绑定关系在用户与支付平台签署预付凭证的支付协议后建立。In actual applications, users may purchase different prepaid vouchers through different channels. When the user has multiple prepaid vouchers, the user needs to bring the corresponding prepaid voucher when using different prepaid vouchers for consumption payment. Or pay through the corresponding payment channel of each prepaid voucher, which will bring great difficulty to the user to use the prepaid voucher to pay. To address this, this embodiment binds one or more prepaid vouchers of the user to one user. Account, with the help of user accounts to realize consumption payments for different prepaid vouchers, thereby improving the flexibility of users to use prepaid vouchers for consumption payments; optionally, the prepaid vouchers include: binding with the user account that submitted the payment request Any one of at least one prepaid voucher in the relationship; wherein the binding relationship is established after the user and the payment platform sign a payment agreement for the prepaid voucher.
需要说明的是,为了确保服务平台对预付凭证对应的预付资源的管理灵活性,以此来提升服务平台合作意愿,本实施例提供的基于预付凭证的支付处理方法,在支付过程中并不涉及预付凭证对应的预付资源的处理过程,仅涉及预付凭证的可用资源额的处理过程,可选的,所述预付凭证对应的资源账户设置于所述服务平台,所述资源账户中的预付资源由所述服务平台进行管理。It should be noted that, in order to ensure the flexibility of the service platform in managing the prepaid resources corresponding to the prepaid voucher, so as to enhance the willingness of the service platform to cooperate, the payment processing method based on the prepaid voucher provided in this embodiment does not involve the payment process. The processing process of the prepaid resources corresponding to the prepaid voucher only involves the processing process of the available resource amount of the prepaid voucher. Optionally, the resource account corresponding to the prepaid voucher is set on the service platform, and the prepaid resources in the resource account are provided by The service platform is managed.
具体实施时,在上述预付凭证与用户账户建立绑定关系的基础上,使用预付凭证进行支付的过程中,本实施例提供两种支付请求提交的实现方式,具体执行过程中可选择任意一种实现方式进行支付请求的提交。During specific implementation, on the basis of establishing a binding relationship between the above-mentioned prepaid voucher and the user account, during the process of payment using the prepaid voucher, this embodiment provides two implementation methods for payment request submission, and any one can be selected during the specific execution process. The implementation method submits the payment request.
第一种实现方式是服务平台扫描用户的支付标识进行支付请求的提交,可选的,所述支付请求,在所述服务平台扫描所述用户账户的支付标识后提交。The first implementation method is that the service platform scans the payment identifier of the user to submit the payment request. Optionally, the payment request is submitted after the service platform scans the payment identifier of the user account.
在上述将至少一个预付凭证与用户账户进行绑定的基础上,也即建立至少一个预付凭证与用户账户的绑定关系的基础上,此处,可基于用户账户的支付码发起针对预付凭证的支付,进而提交针对预付凭证的支付请求,所述支付标识可以是用户账户在所述支付平台的第一支付码,所述第一支付码是指用户账户自身的支付码,此外,该第一支付码还可以是支付平台的支付应用生成的支付码;此外,所述支付标识还可以是针对至少一个预付凭证专门创建的支付码,通过创建该支付码,可发起针对至少一个预付凭证中任意一个预付凭证的支付,进而提交针对该任意一个预付凭证的支付请求。Based on the above binding of at least one prepaid voucher with the user account, that is, on the basis of establishing a binding relationship between at least one prepaid voucher and the user account, here, a payment for the prepaid voucher can be initiated based on the payment code of the user account. Pay, and then submit a payment request for the prepaid voucher. The payment identifier may be the first payment code of the user account on the payment platform. The first payment code refers to the payment code of the user account itself. In addition, the first payment code The payment code can also be a payment code generated by the payment application of the payment platform; in addition, the payment identification can also be a payment code specially created for at least one prepaid voucher. By creating the payment code, you can initiate a payment for any of the at least one prepaid voucher. Pay a prepaid voucher, and then submit a payment request for any prepaid voucher.
可选的,所述支付标识包括:用户账户在所述支付平台的第一支付码,和/或,基于所述至少一个预付凭证创建的第二支付码;其中,所述第一支付码通过所述支付平台的支付应用进行访问,所述第二支付码通过所述支付应用的子程序进行访问。Optionally, the payment identification includes: the first payment code of the user account on the payment platform, and/or a second payment code created based on the at least one prepaid voucher; wherein the first payment code is The payment application of the payment platform is accessed, and the second payment code is accessed through a subroutine of the payment application.
具体执行过程中,可在服务平台提交的支付请求中配置服务标识字段,该服务标识字段用于记录服务平台或者服务机构的标识信息,支付平台在接收到支付请求后,基于支付请求携带的标识信息,在与用户账户建立绑定关系的预付凭证中,查询是否存在该标识信息所属的服务机构或者服务平台的预付凭证,如果存在,则确定优先使用查询到的预付凭证进行支付,并执行向所述预付凭证对应的服务平台发送支付信息的处理过程;如果不存在,则向服务平台返回相应的支付提醒,或者基于用户账户的账户资源进行支付请求的支付响应处理。During the specific execution process, the service identification field can be configured in the payment request submitted by the service platform. The service identification field is used to record the identification information of the service platform or service organization. After receiving the payment request, the payment platform will, based on the identification carried in the payment request, Information, among the prepaid vouchers that are bound to the user account, query whether there is a prepaid voucher for the service institution or service platform to which the identification information belongs. If it exists, determine the priority to use the queried prepaid voucher for payment, and execute the payment. The process of sending payment information to the service platform corresponding to the prepaid voucher; if it does not exist, the corresponding payment reminder is returned to the service platform, or the payment response processing of the payment request is performed based on the account resources of the user account.
此外,不排除用户在同一服务机构购买了多张不同类型的储值卡的情况,针对这种情况,可在支付请求中服务类型字段或者支付类型字段,该服务标识字段用于记录服务类型信息或者支付类型信息,支付平台在接收到支付请求后,基于支付请求携带的服务类型信息或者支付类型信息,在与用户账户建立绑定关系的预付凭证中,查询是否存在与服务类型信息或者支付类型信息匹配的预付凭证,如果存在,则确定优先使用查询到的预付凭证进行支付,并执行向所述预付凭证对应的服务平台发送支付信息的处理过程;如果不存在,则向服务平台返回相应的支付提醒;或者,支付平台在接收到支付请求后,基于支付请求携带的服务类型信息或者支付类型信息,在与用户账户建立绑定关系的预付凭证中查询所述服务平台的预付凭证,并检测所述服务平台的预付凭证中是否存在与服务类型信息或者支付类型信息匹配的预付凭证,如果存在,则确定优先使用与服务类型信息或者支付类型信息匹配的预付凭证进行支付,并执行向所述预付凭证对应的服务平台发送支付信息的处理过程;如果不存在,则向服务平台返回相应的支付提醒。In addition, it is not excluded that the user purchases multiple stored-value cards of different types from the same service institution. In this case, the service type field or payment type field can be included in the payment request. The service identification field is used to record the service type information. Or payment type information. After receiving the payment request, the payment platform will query whether there is any service type information or payment type in the prepaid voucher that is bound to the user account based on the service type information or payment type information carried in the payment request. If a prepayment voucher with matching information exists, it is determined that the queried prepayment voucher will be used first for payment, and the process of sending payment information to the service platform corresponding to the prepayment voucher is executed; if it does not exist, the corresponding information is returned to the service platform. Payment reminder; or, after receiving the payment request, the payment platform, based on the service type information or payment type information carried in the payment request, queries the prepayment voucher of the service platform in the prepayment voucher that is bound to the user account, and detects Whether there is a prepayment voucher matching the service type information or payment type information among the prepayment vouchers of the service platform. If there is a prepayment voucher matching the service type information or payment type information, it is determined that the prepayment voucher matching the service type information or payment type information is used for payment first, and the payment is executed to the The process of sending payment information to the service platform corresponding to the prepaid voucher; if it does not exist, the corresponding payment reminder is returned to the service platform.
第二种实现方式是用户扫描服务平台的支付码进行支付请求的提交,可选的,所述支付请求,在所述支付平台的支付应用扫描所述服务平台的支付码后提交,或者,在所述支付应用的子应用扫描所述服务平台的支付码后提交。The second implementation method is for the user to scan the payment code of the service platform to submit a payment request. Optionally, the payment request is submitted after the payment application of the payment platform scans the payment code of the service platform, or after The sub-application of the payment application scans the payment code of the service platform and submits it.
与上述第一种实现方式类似,可在支付请求中设置服务标识字段、服务类型字段或者支付类型字段,该服务标识字段用于记录扫描服务平台的支付码后解码获得的服务平台的标识信息,或者,用于记录扫描服务平台的支付码后解码获得的服务平台的服务类型信息或者支付类型信息。此外,服务标识字段、服务类型字段或者支付类型字段,还可记录提交支付请求过程用户录入的标识信息、服务类型信息或者支付类型信息。Similar to the first implementation method above, the service identification field, service type field or payment type field can be set in the payment request. The service identification field is used to record the identification information of the service platform obtained by decoding the payment code of the service platform after scanning it. Or, it is used to record the service type information or payment type information of the service platform obtained by scanning the payment code of the service platform and decoding it. In addition, the service identification field, service type field or payment type field can also record the identification information, service type information or payment type information entered by the user during the payment request submission process.
步骤S104,接收所述服务平台对所述支付信息进行资源核销后提交的支付订单。Step S104: Receive the payment order submitted by the service platform after performing resource verification on the payment information.
本实施例所述支付信息中至少携带有支付数额,此外,所述支付信息中还可携带下 述至少一项:预付凭证的凭证信息,消费商品或者消费服务的消费信息,用户信息。具体执行过程中,所述支付信息中携带的数据信息可从所述支付请求中读取获得,也可从服务平台获取;在所述支付信息中携带的数据信息从所述支付请求中读取活动的情况下,所述支付请求中至少携带有支付数额,类似的,所述支付请求中还可携带下述至少一项:预付凭证的凭证信息、消费商品或者消费服务的消费信息、用户信息。The payment information in this embodiment carries at least the payment amount. In addition, the payment information may also carry the following At least one of the above: voucher information of prepaid vouchers, consumption information of consumer goods or services, and user information. During the specific execution process, the data information carried in the payment information can be read from the payment request or obtained from the service platform; the data information carried in the payment information can be read from the payment request. In the case of activities, the payment request may carry at least the payment amount. Similarly, the payment request may also carry at least one of the following: voucher information of prepaid vouchers, consumption information of consumer goods or consumer services, and user information. .
具体实施时,上述将所述支付信息发送至所述服务平台之后,由服务平台基于所述支付信息进行所述预付凭证的资源核销,根据核销结果确定所述预付凭证的预占资源额,以及基于所述预占资源额创建支付订单并向所述支付平台提交。其中,所述预占资源额,是指当前服务平台针对预付凭证实际冻结的用于后续扣减的资源数额,该预占资源额也可看作是服务平台确定针对支付信息确定的实际支付数额。During specific implementation, after the payment information is sent to the service platform, the service platform performs resource write-off of the prepaid voucher based on the payment information, and determines the pre-occupied resource amount of the prepaid voucher based on the write-off result. , and create a payment order based on the reserved resource amount and submit it to the payment platform. Among them, the amount of pre-occupied resources refers to the amount of resources actually frozen by the current service platform for the prepayment voucher for subsequent deductions. The amount of pre-occupied resources can also be regarded as the actual payment amount determined by the service platform based on the payment information. .
可选的,所述资源核销包括检测所述支付信息携带的支付数额是否小于或者等于所述预付凭证的可用资源额,若核销结果为核销通过,将所述支付数额确定为所述预占资源额;若核销结果为核销未通过,将所述可用资源额确定为所述预占资源额。Optionally, the resource write-off includes detecting whether the payment amount carried by the payment information is less than or equal to the available resource amount of the prepayment voucher. If the write-off result is that the write-off is passed, the payment amount is determined as the The amount of pre-occupied resources; if the write-off result is that the write-off fails, the amount of available resources will be determined as the amount of pre-occupied resources.
此外,上述接收所述服务平台对所述支付信息进行资源核销后提交的支付订单步骤,还可被替换为接收所述服务平台提交的支付订单;可选的,所述支付订单中记录有预占资源额,所述预占资源额,采用如下方式确定:若所述支付信息携带的支付数额小于或者等于所述预付凭证的可用资源额,将所述支付数额确定为所述预占资源额;若所述支付信息携带的支付数额大于所述预付凭证的可用资源额,将所述可用资源额确定为所述预占资源额。In addition, the above-mentioned step of receiving a payment order submitted after the service platform performs resource verification on the payment information can also be replaced by receiving a payment order submitted by the service platform; optionally, the payment order is recorded with The amount of pre-occupied resources is determined in the following way: if the payment amount carried by the payment information is less than or equal to the amount of available resources in the pre-payment voucher, the payment amount is determined as the pre-occupied resources. amount; if the payment amount carried by the payment information is greater than the amount of available resources in the prepaid voucher, the amount of available resources is determined as the amount of reserved resources.
步骤S106,确定所述支付订单的支付方式,并按照所述支付方式对所述支付订单进行支付处理。Step S106: Determine the payment method of the payment order, and perform payment processing on the payment order according to the payment method.
在接收到所述服务平台提交的支付订单之后,本步骤中,确定所述支付订单的支付方式,并按照所述支付方式对所述支付订单进行支付处理,具体在确定所述支付订单的支付方式的过程中,基于所述支付订单记录的预占资源额确定所述支付订单的支付方式。After receiving the payment order submitted by the service platform, in this step, the payment method of the payment order is determined, and the payment processing of the payment order is performed according to the payment method. Specifically, the payment method of the payment order is determined. In the process of the method, the payment method of the payment order is determined based on the reserved resource amount recorded in the payment order.
本实施例所述支付方式,是指采用哪个或者哪几个支付渠道对支付订单进行支付的方式,可选的,所述支付方式包括采用预付凭证对应的支付渠道对支付订单进行支付的方式,由于该方式下针对支付订单的支付处理不涉及具体资源的支付,仅涉及对预付凭证的资源额的处理,因此将这种支付方式称之为记账支付;此外,所述支付方式还包括采用预付凭证对应的支付渠道和相应资源的支付渠道两种渠道组合对支付订单进行支付的方式,因此将这种支付方式称之为组合支付。The payment method described in this embodiment refers to which payment channel or payment channels are used to pay for the payment order. Optionally, the payment method includes using the payment channel corresponding to the prepaid voucher to pay the payment order. Since the payment processing for payment orders under this method does not involve the payment of specific resources, but only involves the processing of the resource amount of the prepaid voucher, this payment method is called accounting payment; in addition, the payment method also includes the use of The payment channel corresponding to the prepaid voucher and the payment channel of the corresponding resource are combined to pay for the payment order, so this payment method is called combined payment.
具体实施时,在确定所述支付订单的支付方式的过程中,本实施例提供下述两种基于所述支付订单记录的预占资源额确定所述支付方式的可选实施方式。During specific implementation, during the process of determining the payment method of the payment order, this embodiment provides the following two optional implementation methods for determining the payment method based on the amount of reserved resources recorded in the payment order.
本实施例提供的第一种可选实施方式中,确定所述支付订单的支付方式,包括:若所述支付订单记录的预占资源额与所述支付请求携带的支付数额相等,确定所述支付方式为记账支付。In the first optional implementation provided by this embodiment, determining the payment method of the payment order includes: if the amount of reserved resources recorded in the payment order is equal to the payment amount carried in the payment request, determining the The payment method is bill payment.
本实施例提供的第二种可选实施方式中,确定所述支付订单的支付方式,包括:若所述支付订单记录的预占资源额小于所述支付请求携带的支付数额,确定所述支付方式为组合支付;所述组合支付包括记账支付和资源支付。In the second optional implementation provided by this embodiment, determining the payment method of the payment order includes: if the amount of reserved resources recorded in the payment order is less than the payment amount carried by the payment request, determining the payment The method is combined payment; the combined payment includes accounting payment and resource payment.
相应的,针对本实施例提供的上述两种支付方式,在按照所述支付方式对所述支付订单进行支付处理的过程中,本实施例提供两种分别对应上述两种可选实施方式的支付处理过程。Correspondingly, for the above two payment methods provided by this embodiment, in the process of payment processing of the payment order according to the payment method, this embodiment provides two payment methods respectively corresponding to the above two optional implementation methods. Processing.
具体的,在上述确定的支付方式为记账支付的基础上,本实施例提供的第一种可选实施方式中,按照所述支付方式对所述支付订单进行支付处理,包括:基于所述预占资源额进行所述支付订单的记账支付,获得所述支付结果。可选的,所述记账支付,包括将所述支付订单的订单状态更新为已支付状态,并生成所述支付订单的支付账单。Specifically, on the basis that the payment method determined above is accounting payment, in the first optional implementation manner provided in this embodiment, payment processing of the payment order according to the payment method includes: based on the The pre-occupied resource amount is used to perform accounting payment of the payment order and obtain the payment result. Optionally, the accounting payment includes updating the order status of the payment order to a paid status, and generating a payment bill for the payment order.
在上述确定的支付方式为组合支付的基础上,本实施例提供的第二种可选实施方式中,按照所述支付方式对所述支付订单进行支付处理,包括:基于所述预占资源额进行所述支付订单的记账支付,以及基于剩余资源额进行所述支付订单的资源支付,将记账支付结果和资源支付结果作为所述支付结果。其中,所述剩余资源额为所述支付请求携带的支付数额与所述预占资源额的差值。可选的,所述资源支付,包括将所述剩余资源额对应的资源从用户账户转移至所述服务平台的资源账户。On the basis that the payment method determined above is combined payment, in the second optional implementation provided by this embodiment, payment processing of the payment order according to the payment method includes: based on the pre-occupied resource amount Perform accounting payment of the payment order, and perform resource payment of the payment order based on the remaining resource amount, and use the accounting payment result and the resource payment result as the payment result. The remaining resource amount is the difference between the payment amount carried in the payment request and the reserved resource amount. Optionally, the resource payment includes transferring resources corresponding to the remaining resource amount from the user account to the resource account of the service platform.
通过这种方式,不仅能够在用户的预付凭证的资源额不足的情况下完成支付订单的支付处理,也即能够在用户的预付凭证的资源额不足的情况下实现在服务机构的商品消费或者服务消费,保证了支付可用性,降低了支付失败的发生概率;同时,通过记账支 付和资源支付的组合支付,提升了预付凭证的支付灵活性。此外,用户还可在提交支付请求时指定记账支付的数额和资源支付的数额,以此来进一步提升预付凭证在不同消费场景进行支付的灵活性。In this way, not only can the payment processing of the payment order be completed when the resource amount of the user's prepaid voucher is insufficient, but also the consumption of goods or services at the service institution can be realized when the resource amount of the user's prepaid voucher is insufficient. Consumption ensures payment availability and reduces the probability of payment failure; at the same time, through accounting and expenditure The combination of payment and resource payment improves the payment flexibility of prepaid vouchers. In addition, users can also specify the amount of accounting payment and the amount of resource payment when submitting a payment request, thereby further improving the flexibility of prepaid vouchers for payment in different consumption scenarios.
步骤S108,向所述服务平台同步支付结果。Step S108: Synchronize the payment results to the service platform.
所述支付结果,是指对所述支付订单进行支付处理后获得的支付结果,也即所述支付订单的支付结果,具体的,所述支付结果为支付成功结果或者携带支付成功信息的支付结果。The payment result refers to the payment result obtained after the payment processing of the payment order, that is, the payment result of the payment order. Specifically, the payment result is a payment success result or a payment result carrying payment success information. .
针对上述提供的两种支付方式,若采用记账支付对所述支付订单进行支付处理,则向所述服务平台的支付结果为记账支付成功的支付成功结果;若采用组合支付对所述支付订单进行支付处理,则向所述服务平台的支付结果为资源支付成功和记账支付成功的支付成功结果。For the two payment methods provided above, if accounting payment is used to process the payment order, the payment result to the service platform will be a successful payment result if accounting payment is successful; if combined payment is used to process the payment When the order is processed for payment, the payment result to the service platform is a successful payment result of successful resource payment and successful accounting payment.
本实施例中,向所述服务平台同步所述支付结果,其目的在于提醒服务平台能够进行所述预付凭证的资源额扣减,以此来保证预付凭证的支付处理的数据一致性,因此,上述向所述服务平台同步支付结果步骤,还可被替换为向所述服务平台同步支付结果,以进行所述预付凭证的资源额扣减。具体的,本实施例提供的一种可选实施方式中,进行所述预付凭证的资源额扣减,包括:在所述预付凭证的可用资源额中扣减预占资源额。In this embodiment, the purpose of synchronizing the payment result to the service platform is to remind the service platform to deduct the resource amount of the prepaid voucher, so as to ensure the data consistency of the payment processing of the prepaid voucher. Therefore, The above step of synchronizing the payment result to the service platform can also be replaced by synchronizing the payment result to the service platform to deduct the resource amount of the prepaid voucher. Specifically, in an optional implementation provided by this embodiment, deducting the resource amount of the prepaid voucher includes: deducting the reserved resource amount from the available resource amount of the prepaid voucher.
实际应用中,为了提升用户对预付凭证的感知,还可针对预付凭证开放资源额查询接口,本实施例提供的一种可选实施方式中,采用如下方式实现预付凭证的资源额查询:在获取到针对所述预付凭证的查询请求后,向所述服务平台转发所述查询请求;接收所述服务平台返回的携带所述预付凭证的可用资源额的查询结果。In practical applications, in order to improve users' perception of prepaid vouchers, a resource amount query interface can also be opened for prepaid vouchers. In an optional implementation provided by this embodiment, the following method is used to implement resource amount query of prepaid vouchers: after obtaining After receiving the query request for the prepaid voucher, forward the query request to the service platform; receive the query result returned by the service platform carrying the amount of available resources of the prepaid voucher.
需要说明的是,在实现预付凭证的资源额查询的基础上,所述服务平台还可不再进行针对所述预付凭证的资源核销,在这种情况下,上述接收所述服务平台对所述支付信息进行资源核销后提交的支付订单步骤,还可被替换为接收所述服务平台提交的支付订单这一处理过程,并与本实施例提供的其他处理过程组合新的实现方式。It should be noted that, on the basis of realizing the query of the resource amount of the prepaid voucher, the service platform may no longer perform resource write-off for the prepaid voucher. In this case, the above-mentioned receiving service platform will check the resource amount of the prepaid voucher. The step of submitting a payment order after verifying the payment information for resources can also be replaced by the process of receiving the payment order submitted by the service platform, and combined with other processes provided by this embodiment to create a new implementation.
此外,为了提升用户对预付凭证的关联全面性,本实施例提供的一种可选实施方式中,还可通过如下方式实现预付凭证的挂失处理、期限提醒处理和/或凭证销毁处理:在获取到针对所述预付凭证的挂失请求后,向所述服务平台转发所述挂失请求;接收所述服务平台返回的携带所述预付凭证的权限冻结信息的挂失结果;其中,所述权限冻结信息在对所述预付凭证进行权限冻结后生成;和/或,在获取到针对所述预付凭证的注销请求后,向所述服务平台转发所述注销请求;接收所述服务平台返回的携带所述预付凭证的注销信息的注销结果;其中,所述注销信息在对所述预付凭证进行注销处理后生成;和/或,根据从所述服务平台查询获得的所述预付凭证的有效期限,生成所述有效期限的提醒信息并向用户发送。In addition, in order to improve the comprehensiveness of the user's association with the prepaid voucher, in an optional implementation provided by this embodiment, the loss reporting process, expiry reminder process and/or voucher destruction process of the prepaid voucher can also be implemented in the following manner: after obtaining After receiving the loss report request for the prepaid voucher, forward the loss report request to the service platform; receive the loss report result carrying the permission freezing information of the prepaid voucher returned by the service platform; wherein the permission freezing information is in Generate the prepaid voucher after freezing the authority; and/or, after obtaining the cancellation request for the prepaid voucher, forward the cancellation request to the service platform; receive the request returned by the service platform carrying the prepaid voucher. The cancellation result of the cancellation information of the voucher; wherein the cancellation information is generated after the cancellation processing of the prepaid voucher; and/or, based on the validity period of the prepaid voucher obtained from the service platform query, the cancellation information is generated Expiration date reminder information is sent to the user.
可选的,本实施例提供的基于预付凭证的支付处理方法,应用于支付平台,下述方法实施例提供的基于预付凭证的支付处理方法,应用于服务平台,二者在执行过程中相互配合,因此,阅读本实施例,请参照下述方式实施例的相应内容,同样,阅读下述实施例也请参照本实施例。Optionally, the payment processing method based on prepaid vouchers provided in this embodiment is applied to the payment platform, and the payment processing method based on prepaid vouchers provided in the following method embodiments is applied to the service platform, and the two cooperate with each other during the execution process. , therefore, when reading this embodiment, please refer to the corresponding content of the following embodiment. Similarly, when reading the following embodiment, please refer to this embodiment.
下述以本实施例提供的一种基于预付凭证的支付处理方法在商户储值卡场景的应用为例,对本实施例提供的基于预付凭证的支付处理方法进行进一步说明,参见图2,应用于商户储值卡场景的基于预付凭证的支付处理方法,具体包括下述步骤。The following takes the application of a payment processing method based on a prepaid voucher provided in this embodiment in a merchant stored-value card scenario as an example to further explain the payment processing method based on a prepaid voucher provided in this embodiment. See Figure 2. The payment processing method based on prepaid vouchers in the merchant stored-value card scenario specifically includes the following steps.
步骤S202,在获取到针对储值卡的支付请求后,向储值卡对应的商户发送支付信息;步骤S208,接收商户对支付信息进行金额核销后提交的支付订单。Step S202: After obtaining the payment request for the stored-value card, send payment information to the merchant corresponding to the stored-value card; Step S208: Receive the payment order submitted by the merchant after verifying the amount of the payment information.
步骤S210,若支付订单记录的预占金额与支付请求携带的支付金额相等,确定支付方式为记账支付。Step S210: If the reserved amount recorded in the payment order is equal to the payment amount carried in the payment request, the payment method is determined to be accounting payment.
比如支付订单中记录的预占金额为100元,支付请求中携带的支付金额也为100元,则表明储值卡能够满足当前支付订单的支付,只需将储值卡的金额扣除100元即可,因此采用记账支付。For example, the pre-occupied amount recorded in the payment order is 100 yuan, and the payment amount carried in the payment request is also 100 yuan, which means that the stored-value card can meet the payment of the current payment order. You only need to deduct 100 yuan from the amount of the stored-value card. Yes, so payment by account is used.
步骤S212,基于预占金额进行支付订单的记账支付,获得支付结果。Step S212: Perform accounting payment of the payment order based on the reserved amount, and obtain the payment result.
步骤S214,向商户同步支付结果,以进行储值卡的金额扣减。Step S214: Synchronize the payment results with the merchant to reduce the amount of the stored-value card.
步骤S218,若支付订单记录的预占金额小于支付请求携带的支付金额,确定支付方式为组合支付。Step S218: If the reserved amount recorded in the payment order is less than the payment amount carried in the payment request, the payment method is determined to be combined payment.
其中,组合支付包括记账支付和资源支付。 Among them, combined payment includes accounting payment and resource payment.
比如储值卡的剩余金额仅剩100元,而支付请求中携带的支付金额为120元,则表明储值卡无法满足当前支付订单的支付,不足以支付的20元部分,只能通过其他渠道来进行支付,具体可以利用在支付平台的资金账户支付这20元,因此采用组合支付。For example, the remaining amount of the stored-value card is only 100 yuan, and the payment amount carried in the payment request is 120 yuan, which means that the stored-value card cannot meet the payment of the current payment order. The 20 yuan that is not enough to pay can only be paid through other channels. To make the payment, you can use the fund account on the payment platform to pay the 20 yuan, so a combined payment is used.
步骤S220,基于预占金额进行支付订单的记账支付获得记账支付结果,以及基于剩余金额进行支付订单的资金支付获得资金支付结果。Step S220: Perform accounting payment of the payment order based on the reserved amount to obtain the accounting payment result, and perform fund payment of the payment order based on the remaining amount to obtain the fund payment result.
步骤S222,向商户同步记账支付结果和资金支付结果,以进行储值卡的金额扣减。Step S222: Synchronize the accounting payment result and the fund payment result to the merchant to deduct the amount of the stored-value card.
本说明书还提供另一种基于预付凭证的支付处理方法实施例如下:参照图3,本实施例提供的基于预付凭证的支付处理方法,所述方法具体包括步骤S302至步骤S306。This specification also provides another example of a payment processing method based on a prepaid voucher as follows: Referring to Figure 3 , this embodiment provides a payment processing method based on a prepaid voucher. The method specifically includes steps S302 to S306.
步骤S302,基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销。Step S302: Based on the payment information sent by the payment platform for the prepaid voucher, perform resource verification of the prepaid voucher.
本实施例所述预付凭证,是指通过特定载体和形式发行的、可以在特定机构购买商品或服务的凭证,并且,该凭证往往具有先充值付费后使用凭证消费的特性,因此称之为预付凭证。可选的,所述预付凭证包括以实体介质为载体的实体预付凭证,和/或,以电子凭证为载体的电子预付凭证。比如实体储值卡、电子储值卡等。The prepaid voucher described in this embodiment refers to a voucher issued through a specific carrier and form that can be used to purchase goods or services at a specific institution. Moreover, the voucher often has the characteristic of recharging first and then using the voucher for consumption, so it is called prepaid. certificate. Optionally, the prepaid voucher includes a physical prepaid voucher using physical media as a carrier, and/or an electronic prepaid voucher using an electronic voucher as a carrier. For example, physical stored-value cards, electronic stored-value cards, etc.
实际应用中,用户可能会在不同渠道购买不同的预付凭证,在用户拥有多个预付凭证的情况下,用户在利用不同的预付凭证进行消费支付时,需要携带相应的预付凭证,或者通过各预付凭证的相应支付渠道进行支付,这样会给用户使用预付凭证进行支付带来很大的难度,针对于此,本实施例通过将用户的一个或者多个预付凭证绑定到一个用户账户,借助用户账户实现对不同预付凭证的消费支付,以此提升用户使用预付凭证进行消费支付的灵活性;可选的,所述预付凭证包括:与提交支付请求的用户账户具有绑定关系的至少一个预付凭证中任意一者;其中,所述绑定关系在用户与所述支付平台签署预付凭证的支付协议后建立。In actual applications, users may purchase different prepaid vouchers through different channels. When the user has multiple prepaid vouchers, when using different prepaid vouchers to make consumption payments, the user needs to bring the corresponding prepaid voucher, or use each prepaid voucher. Payment is made through the corresponding payment channel of the voucher, which will bring great difficulty for the user to make payment using the prepaid voucher. In view of this, this embodiment binds one or more prepaid vouchers of the user to a user account, with the help of the user The account implements consumption payments for different prepaid vouchers, thereby improving the flexibility of users to use prepaid vouchers for consumption payments; optionally, the prepaid vouchers include: at least one prepaid voucher that is bound to the user account that submitted the payment request Any one of the above; wherein the binding relationship is established after the user signs a payment agreement for a prepaid voucher with the payment platform.
可选的,所述支付请求,在服务平台扫描所述用户账户的支付标识后提交。在上述将至少一个预付凭证与用户账户进行绑定的基础上,也即建立至少一个预付凭证与用户账户的绑定关系的基础上,此处,可基于用户账户的支付码发起针对预付凭证的支付,进而提交针对预付凭证的支付请求,所述支付标识可以是用户账户在所述支付平台的第一支付码,所述第一支付码是指用户账户自身的支付码,此外,该第一支付码还可以是支付平台的支付应用生成的支付码;此外,所述支付标识还可以是针对至少一个预付凭证专门创建的支付码,通过创建该支付码,可发起针对至少一个预付凭证中任意一个预付凭证的支付,进而提交针对该任意一个预付凭证的支付请求。Optionally, the payment request is submitted after the service platform scans the payment identifier of the user account. Based on the above binding of at least one prepaid voucher with the user account, that is, on the basis of establishing a binding relationship between at least one prepaid voucher and the user account, here, a payment for the prepaid voucher can be initiated based on the payment code of the user account. Pay, and then submit a payment request for the prepaid voucher. The payment identifier may be the first payment code of the user account on the payment platform. The first payment code refers to the payment code of the user account itself. In addition, the first payment code The payment code can also be a payment code generated by the payment application of the payment platform; in addition, the payment identification can also be a payment code specially created for at least one prepaid voucher. By creating the payment code, you can initiate a payment for any of the at least one prepaid voucher. Pay a prepaid voucher, and then submit a payment request for any prepaid voucher.
可选的,所述支付标识包括:用户账户在所述支付平台的第一支付码,和/或,基于所述至少一个预付凭证创建的第二支付码;其中,所述第一支付码通过所述支付平台的支付应用进行访问,所述第二支付码通过所述支付应用的子程序进行访问。Optionally, the payment identification includes: the first payment code of the user account on the payment platform, and/or a second payment code created based on the at least one prepaid voucher; wherein the first payment code is The payment application of the payment platform is accessed, and the second payment code is accessed through a subroutine of the payment application.
可选的,所述服务平台包括基于所述预付凭证进行商品消费和/或服务消费的服务机构的处理平台,或者基于所述预付凭证进行商品消费和/或服务消费的服务方;所述支付请求包括对用户在服务机构进行的商品消费和/或服务消费进行支付的请求。Optionally, the service platform includes a processing platform of a service institution that performs commodity consumption and/or service consumption based on the prepaid voucher, or a service party that performs commodity consumption and/or service consumption based on the prepaid voucher; the payment The request includes a request for payment for the user's consumption of goods and/or services at the service institution.
需要说明的是,为了确保服务平台对预付凭证对应的预付资源的管理灵活性,以此来提升服务平台合作意愿,本实施例提供的基于预付凭证的支付处理方法,在支付过程中并不涉及预付凭证对应的预付资源的处理过程,仅涉及预付凭证的可用资源额的处理过程,可选的,所述预付凭证对应的资源账户设置于所述服务平台,所述资源账户中的预付资源由所述服务平台进行管理。It should be noted that, in order to ensure the flexibility of the service platform in managing the prepaid resources corresponding to the prepaid voucher, so as to enhance the willingness of the service platform to cooperate, the payment processing method based on the prepaid voucher provided in this embodiment does not involve the payment process. The processing process of the prepaid resources corresponding to the prepaid voucher only involves the processing process of the available resource amount of the prepaid voucher. Optionally, the resource account corresponding to the prepaid voucher is set on the service platform, and the prepaid resources in the resource account are provided by The service platform is managed.
具体执行过程中,可在服务平台提交的支付请求中配置服务标识字段,该服务标识字段用于记录服务平台或者服务机构的标识信息,支付平台在接收到支付请求后,基于支付请求携带的标识信息,在与用户账户建立绑定关系的预付凭证中,查询是否存在该标识信息所属的服务机构或者服务平台的预付凭证,如果存在,则确定优先使用查询到的预付凭证进行支付,并执行向所述预付凭证对应的服务平台发送支付信息的处理过程;如果不存在,则向服务平台返回相应的支付提醒,或者基于用户账户的账户资源进行支付请求的支付响应处理。During the specific execution process, the service identification field can be configured in the payment request submitted by the service platform. The service identification field is used to record the identification information of the service platform or service organization. After receiving the payment request, the payment platform will, based on the identification carried in the payment request, Information, among the prepaid vouchers that are bound to the user account, query whether there is a prepaid voucher for the service institution or service platform to which the identification information belongs. If it exists, determine the priority to use the queried prepaid voucher for payment, and execute the payment. The process of sending payment information to the service platform corresponding to the prepaid voucher; if it does not exist, the corresponding payment reminder is returned to the service platform, or the payment response processing of the payment request is performed based on the account resources of the user account.
此外,不排除用户在同一服务机构购买了多张不同类型的储值卡的情况,针对这种情况,可在支付请求中服务类型字段或者支付类型字段,该服务标识字段用于记录服务类型信息或者支付类型信息,支付平台在接收到支付请求后,基于支付请求携带的服务类型信息或者支付类型信息,在与用户账户建立绑定关系的预付凭证中,查询是否存在与服务类型信息或者支付类型信息匹配的预付凭证,如果存在,则确定优先使用查询到的预付凭证进行支付,并执行向所述预付凭证对应的服务平台发送支付信息的处理过程; 如果不存在,则向服务平台返回相应的支付提醒;或者,支付平台在接收到支付请求后,基于支付请求携带的服务类型信息或者支付类型信息,在与用户账户建立绑定关系的预付凭证中查询所述服务平台的预付凭证,并检测所述服务平台的预付凭证中是否存在与服务类型信息或者支付类型信息匹配的预付凭证,如果存在,则确定优先使用与服务类型信息或者支付类型信息匹配的预付凭证进行支付,并执行向所述预付凭证对应的服务平台发送支付信息的处理过程;如果不存在,则向服务平台返回相应的支付提醒。In addition, it is not excluded that the user purchases multiple stored-value cards of different types from the same service institution. In this case, the service type field or payment type field can be included in the payment request. The service identification field is used to record the service type information. Or payment type information. After receiving the payment request, the payment platform will query whether there is any service type information or payment type in the prepaid voucher that is bound to the user account based on the service type information or payment type information carried in the payment request. If a prepayment voucher with matching information exists, it is determined that the queried prepayment voucher will be used first for payment, and the process of sending payment information to the service platform corresponding to the prepayment voucher is executed; If it does not exist, the corresponding payment reminder will be returned to the service platform; or, after receiving the payment request, the payment platform will, based on the service type information or payment type information carried in the payment request, in the prepayment voucher that is bound to the user account. Query the prepaid voucher of the service platform, and detect whether there is a prepaid voucher matching the service type information or payment type information in the service platform. If it exists, determine that the priority usage matches the service type information or payment type information. Pay with the prepaid voucher, and execute the process of sending payment information to the service platform corresponding to the prepaid voucher; if it does not exist, return the corresponding payment reminder to the service platform.
本实施例提供一种可选实施方式中,基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销,包括:检测所述支付信息携带的支付数额是否小于或者等于所述预付凭证的可用资源额;若是,确定核销结果为核销通过;若否,确定核销结果为核销未通过。This embodiment provides an optional implementation method. Based on the payment information sent by the payment platform for the prepayment voucher, the resource verification of the prepayment voucher includes: detecting whether the payment amount carried by the payment information is less than or equal to the The amount of available resources for the prepaid voucher; if yes, determine the write-off result to be write-off passed; if not, determine the write-off result to be write-off failed.
步骤S304,根据核销结果确定所述预付凭证的预占资源额,以及基于所述预占资源额创建支付订单并向所述支付平台提交。Step S304: Determine the reserved resource amount of the prepaid voucher according to the write-off result, and create a payment order based on the reserved resource amount and submit it to the payment platform.
本实施例所述预占资源额,是指当前服务平台针对预付凭证实际冻结的用于后续扣减的资源数额,该预占资源额也可看作是服务平台确定针对支付信息确定的实际支付数额。The amount of reserved resources mentioned in this embodiment refers to the amount of resources actually frozen by the current service platform for the prepayment voucher for subsequent deductions. The amount of reserved resources can also be regarded as the actual payment determined by the service platform based on the payment information. amount.
可选的,所述资源核销包括检测所述支付信息携带的支付数额是否小于或者等于所述预付凭证的可用资源额,若核销结果为核销通过,将所述支付数额确定为所述预占资源额;若核销结果为核销未通过,将所述可用资源额确定为所述预占资源额。Optionally, the resource write-off includes detecting whether the payment amount carried by the payment information is less than or equal to the available resource amount of the prepayment voucher. If the write-off result is that the write-off is passed, the payment amount is determined as the The amount of pre-occupied resources; if the write-off result is that the write-off fails, the amount of available resources will be determined as the amount of pre-occupied resources.
具体实施时,在上述提供的基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销的可选实施方式的基础上,根据所述核销结果确定所述预付凭证的预占资源额,采用如下方式实现:若核销结果为核销通过,将所述支付数额确定为所述预占资源额;若核销结果为核销未通过,将所述可用资源额确定为所述预占资源额。During specific implementation, on the basis of the above-mentioned optional implementation of writing off the resources of the prepaid voucher based on the payment information sent by the payment platform for the prepaid voucher, the prepaid voucher of the prepaid voucher is determined based on the write-off result. The amount of resources occupied is achieved in the following manner: if the write-off result is that the write-off is passed, the payment amount is determined as the amount of pre-occupied resources; if the write-off result is that the write-off is not passed, the amount of available resources is determined as The amount of reserved resources.
步骤S306,接收所述支付平台同步的所述支付订单的支付结果,并进行所述预付凭证的资源额扣减。Step S306: Receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepaid voucher.
上述将所述支付订单提交至支付平台之后,支付平台确定所述支付订单的支付方式,并按照所述支付方式对所述支付订单进行支付处理,具体在确定所述支付订单的支付方式的过程中,基于所述支付订单记录的预占资源额确定所述支付订单的支付方式。After the payment order is submitted to the payment platform, the payment platform determines the payment method of the payment order, and performs payment processing on the payment order according to the payment method, specifically in the process of determining the payment method of the payment order. , the payment method of the payment order is determined based on the reserved resource amount recorded in the payment order.
本实施例所述支付方式,是指采用哪个或者哪几个支付渠道对支付订单进行支付的方式,可选的,所述支付方式包括采用预付凭证对应的支付渠道对支付订单进行支付的方式,由于该方式下针对支付订单的支付处理不涉及具体资源的支付,仅涉及对预付凭证的资源额的处理,因此将这种支付方式称之为记账支付;此外,所述支付方式还包括采用预付凭证对应的支付渠道和相应资源的支付渠道两种渠道组合对支付订单进行支付的方式,因此将这种支付方式称之为组合支付。The payment method described in this embodiment refers to which payment channel or payment channels are used to pay for the payment order. Optionally, the payment method includes using the payment channel corresponding to the prepaid voucher to pay the payment order. Since the payment processing for payment orders under this method does not involve the payment of specific resources, but only involves the processing of the resource amount of the prepaid voucher, this payment method is called accounting payment; in addition, the payment method also includes the use of The payment channel corresponding to the prepaid voucher and the payment channel of the corresponding resource are combined to pay for the payment order, so this payment method is called combined payment.
具体在确定所述支付订单的支付方式的过程中,若所述支付订单记录的预占资源额与所述支付请求携带的支付数额相等,确定所述支付方式为记账支付;若所述支付订单记录的预占资源额小于所述支付请求携带的支付数额,确定所述支付方式为组合支付;所述组合支付包括记账支付和资源支付。Specifically, in the process of determining the payment method of the payment order, if the reserved resource amount recorded in the payment order is equal to the payment amount carried in the payment request, the payment method is determined to be accounting payment; if the payment If the amount of reserved resources in the order record is less than the payment amount carried in the payment request, it is determined that the payment method is combined payment; the combined payment includes accounting payment and resource payment.
本实施例中,接收的所述支付平台同步的所述支付订单的支付结果,是指支付平台按照所述支付方式对所述支付订单进行支付处理获得的支付结果,具体在所述支付订单的支付处理过程中,若支付方式为记账支付,则基于所述预占资源额进行所述支付订单的记账支付,获得所述支付结果。可选的,所述记账支付,包括将所述支付订单的订单状态更新为已支付状态,并生成所述支付订单的支付账单。In this embodiment, the received payment result of the payment order synchronized by the payment platform refers to the payment result obtained by the payment platform processing the payment order according to the payment method, specifically in the payment order. During the payment processing, if the payment method is accounting payment, accounting payment of the payment order is performed based on the reserved resource amount, and the payment result is obtained. Optionally, the accounting payment includes updating the order status of the payment order to a paid status, and generating a payment bill for the payment order.
若支付方式为组合支付,则基于所述预占资源额进行所述支付订单的记账支付,以及基于剩余资源额进行所述支付订单的资源支付,将记账支付结果和资源支付结果作为所述支付结果。其中,所述剩余资源额为所述支付请求携带的支付数额与所述预占资源额的差值。可选的,所述资源支付,包括将所述剩余资源额对应的资源从用户账户转移至所述服务平台的资源账户。If the payment method is combined payment, the accounting payment of the payment order is made based on the reserved resource amount, and the resource payment of the payment order is made based on the remaining resource amount, and the accounting payment result and the resource payment result are regarded as all Describe the payment results. The remaining resource amount is the difference between the payment amount carried in the payment request and the reserved resource amount. Optionally, the resource payment includes transferring resources corresponding to the remaining resource amount from the user account to the resource account of the service platform.
通过这种方式,不仅能够在用户的预付凭证的资源额不足的情况下完成支付订单的支付处理,也即能够在用户的预付凭证的资源额不足的情况下实现在服务机构的商品消费或者服务消费,保证了支付可用性,降低了支付失败的发生概率;同时,通过记账支付和资源支付的组合支付,提升了预付凭证的支付灵活性。此外,用户还可在提交支付请求时指定记账支付的数额和资源支付的数额,以此来进一步提升预付凭证在不同消费场景进行支付的灵活性。In this way, not only can the payment processing of the payment order be completed when the resource amount of the user's prepaid voucher is insufficient, but also the consumption of goods or services at the service institution can be realized when the resource amount of the user's prepaid voucher is insufficient. Consumption ensures payment availability and reduces the probability of payment failure; at the same time, through the combination of accounting payment and resource payment, the payment flexibility of prepaid vouchers is improved. In addition, users can also specify the amount of accounting payment and the amount of resource payment when submitting a payment request, thereby further improving the flexibility of prepaid vouchers for payment in different consumption scenarios.
本实施例中,支付平台同步所述支付结果,其目的在于提醒服务平台能够进行所述 预付凭证的资源额扣减,以此来保证预付凭证的支付处理的数据一致性,本实施例提供的一种可选实施方式中,进行所述预付凭证的资源额扣减,包括:在所述预付凭证的可用资源额中扣减所述预占资源额。In this embodiment, the payment platform synchronizes the payment results, and its purpose is to remind the service platform that it can perform the The resource amount of the prepaid voucher is deducted to ensure the data consistency of the payment processing of the prepaid voucher. In an optional implementation manner provided in this embodiment, the resource amount of the prepaid voucher is deducted, including: The amount of reserved resources will be deducted from the amount of available resources in the above-mentioned prepaid voucher.
实际应用中,为了提升用户对预付凭证的感知,还可针对预付凭证开放资源额查询接口,本实施例提供的一种可选实施方式中,采用如下方式实现预付凭证的资源额查询:接收所述支付平台转发的所述预付凭证的查询请求;查询所述预付凭证的可用资源额,并向所述支付平台返回携带所述可用资源额的查询结果。In practical applications, in order to improve users' awareness of prepaid vouchers, a resource amount query interface can also be opened for prepaid vouchers. In an optional implementation provided by this embodiment, the following method is used to implement resource amount query of prepaid vouchers: receive all The query request of the prepaid voucher forwarded by the payment platform; query the available resource amount of the prepaid voucher, and return the query result carrying the available resource amount to the payment platform.
需要说明的是,在实现预付凭证的资源额查询的基础上,所述服务平台还可不再进行针对所述预付凭证的资源核销,在这种情况下,上述基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销步骤,以及上述根据核销结果确定所述预付凭证的预占资源额,以及基于所述预占资源额创建支付订单并向所述支付平台提交步骤,还可被替换为:基于支付平台针对预付凭证发送的支付信息,创建支付订单并向所述支付平台提交这一处理过程,并与本实施例提供的其他处理过程组合新的实现方式。It should be noted that, on the basis of realizing the query of the resource amount of the prepaid voucher, the service platform can also no longer perform resource write-off for the prepaid voucher. In this case, the above-mentioned based on the payment platform sent for the prepaid voucher payment information, perform the resource write-off step of the prepaid voucher, and determine the pre-occupied resource amount of the pre-paid voucher based on the write-off result, and create a payment order based on the pre-occupied resource amount and submit it to the payment platform , can also be replaced by: based on the payment information sent by the payment platform for the prepaid voucher, create a payment order and submit this process to the payment platform, and combine the new implementation with other processes provided by this embodiment.
此外,为了提升用户对预付凭证的关联全面性,本实施例提供的一种可选实施方式中,还可通过如下方式实现预付凭证的挂失处理和/或凭证销毁处理:接收所述支付平台转发的所述预付凭证的挂失请求;冻结所述预付凭证的访问权限,并向支付平台返回携带冻结获得的权限冻结信息的挂失结果;和/或,接收所述支付平台转发的所述预付凭证的注销请求;将所述预付凭证的资源账户中的账户资源转出至用户的资源账户,并注销所述预付凭证;向所述支付平台返回携带资源转出信息和注销信息的注销结果。In addition, in order to improve the comprehensiveness of the user's association with the prepaid voucher, in an optional implementation provided by this embodiment, the loss reporting process and/or the voucher destruction process of the prepaid voucher can also be implemented in the following manner: receiving the payment platform forwarding a request to report the loss of the prepaid voucher; freeze the access rights of the prepaid voucher, and return the loss reporting result carrying the permission freezing information obtained by freezing to the payment platform; and/or receive the prepaid voucher forwarded by the payment platform Cancellation request; transfer the account resources in the resource account of the prepaid voucher to the user's resource account, and cancel the prepaid voucher; return a cancellation result carrying resource transfer information and cancellation information to the payment platform.
下述以本实施例提供的一种基于预付凭证的支付处理方法在商户储值卡场景的应用为例,对本实施例提供的基于预付凭证的支付处理方法进行进一步说明,参见图2,应用于商户储值卡场景的基于预付凭证的支付处理方法,具体包括下述步骤。The following takes the application of a payment processing method based on a prepaid voucher provided in this embodiment in a merchant stored-value card scenario as an example to further explain the payment processing method based on a prepaid voucher provided in this embodiment. See Figure 2. The payment processing method based on prepaid vouchers in the merchant stored-value card scenario specifically includes the following steps.
步骤S204,基于支付平台针对储值卡发送的支付信息,进行储值卡的金额核销。Step S204: Based on the payment information sent by the payment platform for the stored-value card, the amount of the stored-value card is written off.
步骤S206,根据核销结果确定储值卡的预占金额,以及基于预占金额创建支付订单并向支付平台提交。Step S206: Determine the pre-occupied amount of the stored-value card based on the write-off result, create a payment order based on the pre-occupied amount, and submit it to the payment platform.
步骤S216,接收支付平台同步的支付订单的支付结果,并进行储值卡的金额扣减。Step S216: Receive the payment result of the payment order synchronized by the payment platform, and deduct the amount of the stored-value card.
步骤S224,接收支付平台同步的记账支付结果和资金支付结果,并根据记账支付结果进行储值卡的金额扣减。Step S224: Receive the accounting payment result and the fund payment result synchronized by the payment platform, and deduct the amount of the stored-value card based on the accounting payment result.
本说明书提供的一种基于预付凭证的支付处理装置实施例如下:在上述的实施例中,提供了一种基于预付凭证的支付处理方法,与之相对应的,还提供了一种基于预付凭证的支付处理装置,下面结合附图进行说明。The embodiment of a payment processing device based on a prepaid voucher provided in this specification is as follows: In the above embodiment, a payment processing method based on a prepaid voucher is provided. Correspondingly, a payment processing method based on a prepaid voucher is also provided. The payment processing device is described below with reference to the accompanying drawings.
参照图4,其示出了本实施例提供的一种基于预付凭证的支付处理装置示意图。Referring to FIG. 4 , a schematic diagram of a payment processing device based on a prepaid voucher provided in this embodiment is shown.
由于装置实施例对应于方法实施例,所以描述得比较简单,相关的部分请参见上述提供的方法实施例的对应说明即可。下述描述的装置实施例仅仅是示意性的。Since the device embodiment corresponds to the method embodiment, the description is relatively simple. For relevant parts, please refer to the corresponding description of the method embodiment provided above. The device embodiments described below are merely illustrative.
本实施例提供一种基于预付凭证的支付处理装置,包括:支付信息发送模块402,被配置为在获取到针对预付凭证的支付请求后,向所述预付凭证对应的服务平台发送支付信息;支付订单接收模块404,被配置为接收所述服务平台对所述支付信息进行资源核销后提交的支付订单;支付处理模块406,被配置为确定所述支付订单的支付方式,并按照所述支付方式对所述支付订单进行支付处理;支付结果同步模块408,被配置为向所述服务平台同步支付结果,以进行所述预付凭证的资源额扣减。This embodiment provides a payment processing device based on a prepaid voucher, including: a payment information sending module 402 configured to, after obtaining a payment request for a prepaid voucher, send payment information to the service platform corresponding to the prepaid voucher; payment The order receiving module 404 is configured to receive the payment order submitted by the service platform after verifying the resources of the payment information; the payment processing module 406 is configured to determine the payment method of the payment order and process the payment according to the payment method. The payment processing is performed on the payment order; the payment result synchronization module 408 is configured to synchronize the payment result with the service platform to deduct the resource amount of the prepaid voucher.
本说明书提供的另一种基于预付凭证的支付处理装置实施例如下:在上述的实施例中,提供了另一种基于预付凭证的支付处理方法,与之相对应的,还提供了另一种基于预付凭证的支付处理装置,下面结合附图进行说明。Another embodiment of a payment processing device based on a prepaid voucher provided in this specification is as follows: In the above embodiment, another payment processing method based on a prepaid voucher is provided, and correspondingly, another payment processing method based on a prepaid voucher is provided. The payment processing device based on the prepaid voucher will be described below with reference to the accompanying drawings.
参照图5,其示出了本实施例提供的一种基于预付凭证的支付处理装置示意图。Referring to FIG. 5 , a schematic diagram of a payment processing device based on a prepaid voucher provided in this embodiment is shown.
由于装置实施例对应于方法实施例,所以描述得比较简单,相关的部分请参见上述提供的方法实施例的对应说明即可。下述描述的装置实施例仅仅是示意性的。Since the device embodiment corresponds to the method embodiment, the description is relatively simple. For relevant parts, please refer to the corresponding description of the method embodiment provided above. The device embodiments described below are merely illustrative.
本实施例提供一种基于预付凭证的支付处理装置,包括:资源核销模块502,被配置为基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销;支付订单创建模块504,被配置为根据核销结果确定所述预付凭证的预占资源额,以及基于所述预占资源额创建支付订单并向所述支付平台提交;资源额扣减模块506,被配置为接收所述支付平台同步的所述支付订单的支付结果,并进行所述预付凭证的资源额扣减。 This embodiment provides a payment processing device based on a prepaid voucher, including: a resource write-off module 502, configured to perform resource write-off of the prepaid voucher based on the payment information sent by the payment platform for the prepaid voucher; a payment order creation module 504 is configured to determine the amount of reserved resources for the prepaid voucher based on the write-off result, and to create a payment order based on the amount of reserved resources and submit it to the payment platform; the resource amount deduction module 506 is configured to receive The payment platform synchronizes the payment results of the payment order and deducts the resource amount of the prepaid voucher.
本说明书提供的一种基于预付凭证的支付处理设备实施例如下:对应上述描述的一种基于预付凭证的支付处理方法,基于相同的技术构思,本说明书一个或多个实施例还提供一种基于预付凭证的支付处理设备,该基于预付凭证的支付处理设备用于执行上述提供的基于预付凭证的支付处理方法,图6为本说明书一个或多个实施例提供的一种基于预付凭证的支付处理设备的结构示意图。The embodiments of a payment processing device based on a prepaid voucher provided in this specification are as follows: Corresponding to the above-described payment processing method based on a prepaid voucher, based on the same technical concept, one or more embodiments of this specification also provide a payment processing method based on a prepaid voucher. Prepaid voucher-based payment processing equipment. The prepaid voucher-based payment processing equipment is used to execute the above-mentioned prepaid voucher-based payment processing method. Figure 6 shows a prepaid voucher-based payment processing provided by one or more embodiments of this specification. Structural diagram of the equipment.
本实施例提供的一种基于预付凭证的支付处理设备,包括:如图6所示,基于预付凭证的支付处理设备可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上的处理器601和存储器602,存储器602中可以存储有一个或一个以上存储应用程序或数据。其中,存储器602可以是短暂存储或持久存储。存储在存储器602的应用程序可以包括一个或一个以上模块(图示未示出),每个模块可以包括基于预付凭证的支付处理设备中的一系列计算机可执行指令。更进一步地,处理器601可以设置为与存储器602通信,在基于预付凭证的支付处理设备上执行存储器602中的一系列计算机可执行指令。基于预付凭证的支付处理设备还可以包括一个或一个以上电源603,一个或一个以上有线或无线网络接口604,一个或一个以上输入/输出接口605,一个或一个以上键盘606等。This embodiment provides a payment processing device based on a prepaid voucher, including: As shown in Figure 6, the payment processing device based on a prepaid voucher may vary greatly due to different configurations or performance, and may include one or more Processor 601 and memory 602. The memory 602 may store one or more storage application programs or data. Among them, the memory 602 may be short-term storage or persistent storage. Applications stored in memory 602 may include one or more modules (not shown), each of which may include a sequence of computer-executable instructions in a prepaid voucher-based payment processing device. Further, the processor 601 may be configured to communicate with the memory 602 to execute a series of computer-executable instructions in the memory 602 on the prepaid voucher-based payment processing device. The prepaid voucher-based payment processing device may also include one or more power supplies 603, one or more wired or wireless network interfaces 604, one or more input/output interfaces 605, one or more keyboards 606, etc.
在一个具体的实施例中,基于预付凭证的支付处理设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可以包括一个或一个以上模块,且每个模块可以包括对基于预付凭证的支付处理设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可执行指令:在获取到针对预付凭证的支付请求后,向所述预付凭证对应的服务平台发送支付信息;接收所述服务平台对所述支付信息进行资源核销后提交的支付订单;确定所述支付订单的支付方式,并按照所述支付方式对所述支付订单进行支付处理;向所述服务平台同步支付结果,以进行所述预付凭证的资源额扣减。In a specific embodiment, the payment processing device based on prepaid vouchers includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions in a prepaid voucher-based payment processing device, and may be configured to execute the one or more programs by one or more processors including performing the following computer-executable instructions: Execution instructions: after obtaining the payment request for the prepaid voucher, send payment information to the service platform corresponding to the prepaid voucher; receive the payment order submitted by the service platform after performing resource verification on the payment information; determine the The payment method of the payment order, and the payment processing of the payment order is carried out according to the payment method; the payment result is synchronized with the service platform to deduct the resource amount of the prepaid voucher.
本说明书提供的另一种基于预付凭证的支付处理设备实施例如下:对应上述描述的另一种基于预付凭证的支付处理方法,基于相同的技术构思,本说明书一个或多个实施例还提供另一种基于预付凭证的支付处理设备,该基于预付凭证的支付处理设备用于执行上述提供的基于预付凭证的支付处理方法,图7为本说明书一个或多个实施例提供的一种基于预付凭证的支付处理设备的结构示意图。Another embodiment of a payment processing device based on a prepaid voucher provided in this specification is as follows: Corresponding to the other payment processing method based on a prepaid voucher described above, based on the same technical concept, one or more embodiments of this specification also provide another A payment processing device based on a prepaid voucher. The payment processing device based on a prepaid voucher is used to execute the payment processing method based on a prepaid voucher provided above. Figure 7 shows a payment processing device based on a prepaid voucher provided by one or more embodiments of this specification. Structural diagram of payment processing equipment.
本实施例提供的一种基于预付凭证的支付处理设备,包括:如图7所示,基于预付凭证的支付处理设备可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上的处理器701和存储器702,存储器702中可以存储有一个或一个以上存储应用程序或数据。其中,存储器702可以是短暂存储或持久存储。存储在存储器702的应用程序可以包括一个或一个以上模块(图示未示出),每个模块可以包括基于预付凭证的支付处理设备中的一系列计算机可执行指令。更进一步地,处理器701可以设置为与存储器702通信,在基于预付凭证的支付处理设备上执行存储器702中的一系列计算机可执行指令。基于预付凭证的支付处理设备还可以包括一个或一个以上电源703,一个或一个以上有线或无线网络接口704,一个或一个以上输入/输出接口705,一个或一个以上键盘706等。This embodiment provides a payment processing device based on a prepaid voucher, including: As shown in Figure 7, the payment processing device based on a prepaid voucher may vary greatly due to different configurations or performance, and may include one or more Processor 701 and memory 702. The memory 702 may store one or more storage application programs or data. Among them, the memory 702 may be short-term storage or persistent storage. Applications stored in memory 702 may include one or more modules (not shown), each of which may include a sequence of computer-executable instructions in a prepaid voucher-based payment processing device. Further, the processor 701 may be configured to communicate with the memory 702 to execute a series of computer-executable instructions in the memory 702 on the prepaid voucher-based payment processing device. The prepaid voucher based payment processing device may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input/output interfaces 705, one or more keyboards 706, etc.
在一个具体的实施例中,基于预付凭证的支付处理设备包括有存储器,以及一个或一个以上的程序,其中一个或者一个以上程序存储于存储器中,且一个或者一个以上程序可以包括一个或一个以上模块,且每个模块可以包括对基于预付凭证的支付处理设备中的一系列计算机可执行指令,且经配置以由一个或者一个以上处理器执行该一个或者一个以上程序包含用于进行以下计算机可执行指令:基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销;根据核销结果确定所述预付凭证的预占资源额,以及基于所述预占资源额创建支付订单并向所述支付平台提交;接收所述支付平台同步的所述支付订单的支付结果,并进行所述预付凭证的资源额扣减。In a specific embodiment, the payment processing device based on prepaid vouchers includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions in a prepaid voucher-based payment processing device, and may be configured to execute the one or more programs by one or more processors including performing the following computer-executable instructions: Execution instructions: Based on the payment information sent by the payment platform for the prepaid voucher, perform resource write-off of the prepaid voucher; determine the pre-occupied resource amount of the pre-paid voucher based on the write-off result, and create a payment order based on the pre-occupied resource amount and submit it to the payment platform; receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepayment voucher.
本说明书提供的一种存储介质实施例如下:对应上述描述的一种基于预付凭证的支付处理方法,基于相同的技术构思,本说明书一个或多个实施例还提供一种存储介质。An example of a storage medium provided in this specification is as follows: Corresponding to the above-described payment processing method based on prepaid vouchers and based on the same technical concept, one or more embodiments of this specification also provide a storage medium.
本实施例提供的存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被处理器执行时实现以下流程:在获取到针对预付凭证的支付请求后,向所述预付凭证对应的服务平台发送支付信息;接收所述服务平台对所述支付信息进行资源核销后提交的支付订单;确定所述支付订单的支付方式,并按照所述支付方式对所述支付订单进行支付处理;向所述服务平台同步支付结果,以进行所述预付凭证的资源额扣减。The storage medium provided by this embodiment is used to store computer-executable instructions. When executed by a processor, the computer-executable instructions implement the following process: after obtaining a payment request for a prepaid voucher, send a payment request to the user corresponding to the prepaid voucher. The service platform sends payment information; receives the payment order submitted by the service platform after verifying the resources of the payment information; determines the payment method of the payment order, and performs payment processing on the payment order according to the payment method; The payment result is synchronized with the service platform to deduct the resource amount of the prepaid voucher.
需要说明的是,本说明书中关于存储介质的实施例与本说明书中关于基于预付 凭证的支付处理方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应方法的实施,重复之处不再赘述。It should be noted that the storage medium embodiments in this specification are different from the prepaid-based storage media embodiments in this specification. The embodiment of the voucher payment processing method is based on the same inventive concept. Therefore, the specific implementation of this embodiment can be referred to the implementation of the corresponding method mentioned above, and the repeated parts will not be described again.
本说明书提供的另一种存储介质实施例如下:对应上述描述的另一种基于预付凭证的支付处理方法,基于相同的技术构思,本说明书一个或多个实施例还提供另一种存储介质。Another storage medium embodiment provided in this specification is as follows: Corresponding to the other payment processing method based on prepaid vouchers described above, based on the same technical concept, one or more embodiments of this specification also provide another storage medium.
本实施例提供的存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被处理器执行时实现以下流程:基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销;根据核销结果确定所述预付凭证的预占资源额,以及基于所述预占资源额创建支付订单并向所述支付平台提交;接收所述支付平台同步的所述支付订单的支付结果,并进行所述预付凭证的资源额扣减。The storage medium provided by this embodiment is used to store computer executable instructions. When executed by the processor, the computer executable instructions implement the following process: based on the payment information sent by the payment platform for the prepayment voucher, the resources of the prepayment voucher are processed. Write-off; determine the pre-occupied resource amount of the prepaid voucher according to the write-off result, and create a payment order based on the pre-occupied resource amount and submit it to the payment platform; receive payment of the payment order synchronized by the payment platform As a result, the resource amount of the prepaid voucher is deducted.
需要说明的是,本说明书中关于存储介质的实施例与本说明书中关于基于预付凭证的支付处理方法的实施例基于同一发明构思,因此该实施例的具体实施可以参见前述对应方法的实施,重复之处不再赘述。It should be noted that the embodiment of the storage medium in this specification and the embodiment of the payment processing method based on prepaid vouchers in this specification are based on the same inventive concept. Therefore, for the specific implementation of this embodiment, please refer to the implementation of the corresponding method mentioned above. Repeat No further details will be given.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desired results. Additionally, the processes depicted in the figures do not necessarily require the specific order shown, or sequential order, to achieve desirable results. Multitasking and parallel processing are also possible or may be advantageous in certain implementations.
在20世纪30年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1930s, improvements in a technology could be clearly distinguished as hardware improvements (for example, improvements in circuit structures such as diodes, transistors, switches, etc.) or software improvements (improvements in method processes). However, with the development of technology, many improvements in today's method processes can be regarded as direct improvements in hardware circuit structures. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement of a method flow cannot be implemented using hardware entity modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic functions are determined by the user programming the device. Designers can program themselves to "integrate" a digital system on a PLD, instead of asking chip manufacturers to design and produce dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used in program development and writing, and before compilation The original code must also be written in a specific programming language, which is called Hardware Description Language (HDL), and HDL is not just one kind, but there are many, such as ABEL (Advanced Boolean Expression Language) , AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., are currently the most commonly used The two are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that by simply logically programming the method flow using the above-mentioned hardware description languages and programming it into the integrated circuit, the hardware circuit that implements the logical method flow can be easily obtained.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (eg, software or firmware) executable by the (micro)processor. , logic gates, switches, Application Specific Integrated Circuit (ASIC), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, For Microchip PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the memory's control logic. Those skilled in the art also know that in addition to implementing the controller in the form of pure computer-readable program code, the controller can be completely programmed with logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded logic by logically programming the method steps. Microcontroller, etc. to achieve the same function. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the means for implementing various functions can be considered as structures within hardware components as well as software modules implementing the methods.
上述实施例阐明的系统、装置、模块或单元,可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本说明书实施例时可以把各单元的功能在同一个或多个软件和/或硬件中实现。 For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and/or hardware.
本领域内的技术人员应明白,本说明书一个或多个实施例可提供为方法、系统或计算机程序产品。因此,本说明书一个或多个实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本说明书可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It will be appreciated by those skilled in the art that one or more embodiments of this specification may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk memory, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本说明书是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The specification is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the specification. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in computer-readable media, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-volatile, removable and non-removable media that can be implemented by any method or technology for storage of information. Information may be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cartridges, disk storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include transient computer-readable media (transitory media), such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个......”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprises," "comprises," or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements not only includes those elements, but also includes Other elements are not expressly listed or are inherent to the process, method, article or equipment. Without further limitation, an element defined by the statement "comprises a..." does not exclude the presence of additional identical elements in a process, method, article, or apparatus that includes the stated element.
本说明书一个或多个实施例可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本说明书的一个或多个实施例,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。One or more embodiments of this specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner. The same and similar parts between the various embodiments can be referred to each other. Each embodiment focuses on its differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For relevant details, please refer to the partial description of the method embodiment.
以上所述为本文件的一个或多个实施例,并不用于限制本文件。对于本领域技术人员来说,本文件可以有各种更改和变化。凡在本文件的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本文件的权利要求范围之内。 The above description is one or more embodiments of this document and is not intended to limit this document. Various modifications and variations of this document may occur to those skilled in the art. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this document shall be included in the scope of the claims of this document.

Claims (23)

  1. 一种基于预付凭证的支付处理方法,包括:A payment processing method based on prepaid vouchers, including:
    在获取到针对预付凭证的支付请求后,向所述预付凭证对应的服务平台发送支付信息;After obtaining the payment request for the prepaid voucher, send payment information to the service platform corresponding to the prepaid voucher;
    接收所述服务平台对所述支付信息进行资源核销后提交的支付订单;Receive the payment order submitted by the service platform after verifying the resources of the payment information;
    确定所述支付订单的支付方式,并按照所述支付方式对所述支付订单进行支付处理;Determine the payment method of the payment order, and perform payment processing on the payment order according to the payment method;
    向所述服务平台同步支付结果,以进行所述预付凭证的资源额扣减。The payment result is synchronized with the service platform to deduct the resource amount of the prepaid voucher.
  2. 根据权利要求1所述的基于预付凭证的支付处理方法,所述预付凭证包括:与提交所述支付请求的用户账户具有绑定关系的至少一个预付凭证中任意一者;The payment processing method based on prepaid vouchers according to claim 1, wherein the prepaid vouchers include: any one of at least one prepaid voucher that has a binding relationship with the user account that submitted the payment request;
    其中,所述绑定关系在用户与支付平台签署预付凭证的支付协议后建立。The binding relationship is established after the user and the payment platform sign a payment agreement for the prepaid voucher.
  3. 根据权利要求2所述的基于预付凭证的支付处理方法,所述支付请求,在所述服务平台扫描所述用户账户的支付标识后提交;所述支付标识包括:用户账户在所述支付平台的第一支付码,和/或,基于所述至少一个预付凭证创建的第二支付码;According to the payment processing method based on prepaid vouchers according to claim 2, the payment request is submitted after the service platform scans the payment identification of the user account; the payment identification includes: the user account on the payment platform. a first payment code, and/or a second payment code created based on the at least one prepayment voucher;
    其中,所述第一支付码通过所述支付平台的支付应用进行访问,所述第二支付码通过所述支付应用的子程序进行访问。Wherein, the first payment code is accessed through a payment application of the payment platform, and the second payment code is accessed through a subroutine of the payment application.
  4. 根据权利要求2所述的基于预付凭证的支付处理方法,所述支付请求,在所述支付平台的支付应用扫描所述服务平台的支付码后提交,或者,在所述支付应用的子应用扫描所述服务平台的支付码后提交。According to the payment processing method based on prepaid vouchers according to claim 2, the payment request is submitted after the payment application of the payment platform scans the payment code of the service platform, or after a sub-application of the payment application scans Submit the payment code of the service platform.
  5. 根据权利要求1所述的基于预付凭证的支付处理方法,所述确定所述支付订单的支付方式,包括:According to the payment processing method based on prepaid vouchers according to claim 1, determining the payment method of the payment order includes:
    若所述支付订单记录的预占资源额与所述支付请求携带的支付数额相等,确定所述支付方式为记账支付;If the reserved resource amount recorded in the payment order is equal to the payment amount carried in the payment request, it is determined that the payment method is accounting payment;
    所述按照所述支付方式对所述支付订单进行支付处理,包括:The payment processing of the payment order according to the payment method includes:
    基于所述预占资源额进行所述支付订单的记账支付,获得所述支付结果。Accounting payment of the payment order is performed based on the pre-occupied resource amount, and the payment result is obtained.
  6. 根据权利要求1所述的基于预付凭证的支付处理方法,所述确定所述支付订单的支付方式,包括:According to the payment processing method based on prepaid vouchers according to claim 1, determining the payment method of the payment order includes:
    若所述支付订单记录的预占资源额小于所述支付请求携带的支付数额,确定所述支付方式为组合支付;所述组合支付包括记账支付和资源支付;If the pre-occupied resource amount recorded in the payment order is less than the payment amount carried in the payment request, it is determined that the payment method is combined payment; the combined payment includes accounting payment and resource payment;
    所述按照所述支付方式对所述支付订单进行支付处理,包括:The payment processing of the payment order according to the payment method includes:
    基于所述预占资源额进行所述支付订单的记账支付,以及基于剩余资源额进行所述支付订单的资源支付,将记账支付结果和资源支付结果作为所述支付结果。The accounting payment of the payment order is performed based on the reserved resource amount, and the resource payment of the payment order is performed based on the remaining resource amount, and the accounting payment result and the resource payment result are used as the payment result.
  7. 根据权利要求5或6所述的基于预付凭证的支付处理方法,所述记账支付,包括将所述支付订单的订单状态更新为已支付状态,并生成所述支付订单的支付账单;According to the payment processing method based on prepaid vouchers according to claim 5 or 6, the accounting payment includes updating the order status of the payment order to a paid status and generating a payment bill for the payment order;
    所述资源支付,包括将所述剩余资源额对应的资源从用户账户转移至所述服务平台的资源账户。The resource payment includes transferring resources corresponding to the remaining resource amount from the user account to the resource account of the service platform.
  8. 根据权利要求1所述的基于预付凭证的支付处理方法,所述预付凭证对应的资源账户设置于所述服务平台,所述资源账户中的预付资源由所述服务平台进行管理;According to the payment processing method based on prepaid vouchers according to claim 1, the resource account corresponding to the prepaid voucher is set on the service platform, and the prepaid resources in the resource account are managed by the service platform;
    所述进行所述预付凭证的资源额扣减,包括:在所述预付凭证的可用资源额中扣减预占资源额。Deducting the resource amount of the prepaid voucher includes: deducting the reserved resource amount from the available resource amount of the prepaid voucher.
  9. 根据权利要求5、6和8中任一所述的基于预付凭证的支付处理方法,所述预占资源额,采用如下方式确定:According to the payment processing method based on prepaid vouchers according to any one of claims 5, 6 and 8, the amount of reserved resources is determined in the following manner:
    若所述支付信息携带的支付数额小于或者等于所述预付凭证的可用资源额,将所述支付数额确定为所述预占资源额;If the payment amount carried by the payment information is less than or equal to the available resource amount of the prepayment voucher, determine the payment amount as the reserved resource amount;
    若所述支付信息携带的支付数额大于所述预付凭证的可用资源额,将所述可用资源额确定为所述预占资源额。If the payment amount carried by the payment information is greater than the available resource amount of the prepaid voucher, the available resource amount is determined as the reserved resource amount.
  10. 根据权利要求1所述的基于预付凭证的支付处理方法,还包括:The payment processing method based on prepaid vouchers according to claim 1, further comprising:
    在获取到针对所述预付凭证的查询请求后,向所述服务平台转发所述查询请求;After obtaining the query request for the prepaid voucher, forward the query request to the service platform;
    接收所述服务平台返回的携带所述预付凭证的可用资源额的查询结果。Receive the query result returned by the service platform carrying the amount of available resources of the prepaid voucher.
  11. 根据权利要求1所述的基于预付凭证的支付处理方法,所述预付凭证,包括实体预付凭证、电子预付凭证。The payment processing method based on prepaid vouchers according to claim 1, wherein the prepaid vouchers include physical prepaid vouchers and electronic prepaid vouchers.
  12. 一种基于预付凭证的支付处理方法,包括:A payment processing method based on prepaid vouchers, including:
    基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销;Based on the payment information sent by the payment platform for the prepaid voucher, perform resource write-off of the prepaid voucher;
    根据核销结果确定所述预付凭证的预占资源额,以及基于所述预占资源额创建支付订单并向所述支付平台提交;Determine the reserved resource amount of the prepaid voucher according to the write-off result, and create a payment order based on the reserved resource amount and submit it to the payment platform;
    接收所述支付平台同步的所述支付订单的支付结果,并进行所述预付凭证的资源额扣减。Receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepaid voucher.
  13. 根据权利要求12所述的基于预付凭证的支付处理方法,所述预付凭证包括:与提交支付请求的用户账户具有绑定关系的至少一个预付凭证中任意一者;The payment processing method based on prepaid vouchers according to claim 12, wherein the prepaid vouchers include: any one of at least one prepaid voucher that has a binding relationship with the user account that submitted the payment request;
    其中,所述绑定关系在用户与所述支付平台签署预付凭证的支付协议后建立。 Wherein, the binding relationship is established after the user signs a payment agreement for the prepaid voucher with the payment platform.
  14. 根据权利要求13所述的基于预付凭证的支付处理方法,所述支付请求,在服务平台扫描所述用户账户的支付标识后提交;所述支付标识包括:用户账户在所述支付平台的第一支付码,和/或,基于所述至少一个预付凭证创建的第二支付码;According to the payment processing method based on prepaid vouchers according to claim 13, the payment request is submitted after the service platform scans the payment identification of the user account; the payment identification includes: the first entry of the user account on the payment platform. Payment code, and/or, a second payment code created based on the at least one prepaid voucher;
    其中,所述第一支付码通过所述支付平台的支付应用进行访问,所述第二支付码通过所述支付应用的子程序进行访问。Wherein, the first payment code is accessed through a payment application of the payment platform, and the second payment code is accessed through a subroutine of the payment application.
  15. 根据权利要求12所述的基于预付凭证的支付处理方法,所述基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销,包括:According to the payment processing method based on the prepaid voucher according to claim 12, the resource verification of the prepaid voucher based on the payment information sent by the payment platform includes:
    检测所述支付信息携带的支付数额是否小于或者等于所述预付凭证的可用资源额;Detect whether the payment amount carried by the payment information is less than or equal to the amount of available resources in the prepayment voucher;
    若是,确定核销结果为核销通过;If so, the write-off result is determined to be approved;
    若否,确定核销结果为核销未通过;If not, the write-off result is determined to be that the write-off failed;
    所述根据核销结果确定所述预付凭证的预占资源额,包括:Determining the amount of reserved resources for the prepaid voucher based on the write-off results includes:
    若核销结果为核销通过,将所述支付数额确定为所述预占资源额;If the write-off result is that the write-off is passed, the payment amount will be determined as the pre-occupied resource amount;
    若核销结果为核销未通过,将所述可用资源额确定为所述预占资源额。If the write-off result is that the write-off fails, the amount of available resources is determined as the amount of reserved resources.
  16. 根据权利要求12所述的基于预付凭证的支付处理方法,所述预付凭证对应的资源账户设置于服务平台,所述资源账户中的预付资源由所述服务平台进行管理;According to the payment processing method based on prepaid vouchers according to claim 12, the resource account corresponding to the prepaid voucher is set on a service platform, and the prepaid resources in the resource account are managed by the service platform;
    所述进行所述预付凭证的资源额扣减,包括:在所述预付凭证的可用资源额中扣减所述预占资源额。Deducting the resource amount of the prepaid voucher includes deducting the reserved resource amount from the available resource amount of the prepaid voucher.
  17. 根据权利要求12所述的基于预付凭证的支付处理方法,还包括:The payment processing method based on prepaid vouchers according to claim 12, further comprising:
    接收所述支付平台转发的所述预付凭证的查询请求;Receive a query request for the prepaid voucher forwarded by the payment platform;
    查询所述预付凭证的可用资源额,并向所述支付平台返回携带所述可用资源额的查询结果。Query the available resource amount of the prepaid voucher, and return the query result carrying the available resource amount to the payment platform.
  18. 一种基于预付凭证的支付处理装置,包括:A payment processing device based on prepaid vouchers, including:
    支付信息发送模块,被配置为在获取到针对预付凭证的支付请求后,向所述预付凭证对应的服务平台发送支付信息;The payment information sending module is configured to, after obtaining a payment request for a prepaid voucher, send payment information to the service platform corresponding to the prepaid voucher;
    支付订单接收模块,被配置为接收所述服务平台对所述支付信息进行资源核销后提交的支付订单;The payment order receiving module is configured to receive the payment order submitted by the service platform after verifying the resources of the payment information;
    支付处理模块,被配置为确定所述支付订单的支付方式,并按照所述支付方式对所述支付订单进行支付处理;A payment processing module configured to determine the payment method of the payment order and perform payment processing on the payment order according to the payment method;
    支付结果同步模块,被配置为向所述服务平台同步支付结果,以进行所述预付凭证的资源额扣减。The payment result synchronization module is configured to synchronize the payment result with the service platform to reduce the resource amount of the prepaid voucher.
  19. 一种基于预付凭证的支付处理装置,包括:A payment processing device based on prepaid vouchers, including:
    资源核销模块,被配置为基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销;The resource write-off module is configured to perform resource write-off of the prepaid voucher based on the payment information sent by the payment platform for the prepaid voucher;
    支付订单创建模块,被配置为根据核销结果确定所述预付凭证的预占资源额,以及基于所述预占资源额创建支付订单并向所述支付平台提交;A payment order creation module configured to determine the amount of reserved resources for the prepaid voucher based on the write-off result, and to create a payment order based on the amount of reserved resources and submit it to the payment platform;
    资源额扣减模块,被配置为接收所述支付平台同步的所述支付订单的支付结果,并进行所述预付凭证的资源额扣减。The resource amount deduction module is configured to receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepayment voucher.
  20. 一种基于预付凭证的支付处理设备,包括:A payment processing device based on prepaid vouchers, including:
    处理器;以及,被配置为存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器:a processor; and, a memory configured to store computer-executable instructions that, when executed, cause the processor to:
    在获取到针对预付凭证的支付请求后,向所述预付凭证对应的服务平台发送支付信息;After obtaining the payment request for the prepaid voucher, send payment information to the service platform corresponding to the prepaid voucher;
    接收所述服务平台对所述支付信息进行资源核销后提交的支付订单;Receive the payment order submitted by the service platform after verifying the resources of the payment information;
    确定所述支付订单的支付方式,并按照所述支付方式对所述支付订单进行支付处理;Determine the payment method of the payment order, and perform payment processing on the payment order according to the payment method;
    向所述服务平台同步支付结果,以进行所述预付凭证的资源额扣减。The payment result is synchronized with the service platform to deduct the resource amount of the prepaid voucher.
  21. 一种基于预付凭证的支付处理设备,包括:A payment processing device based on prepaid vouchers, including:
    处理器;以及,被配置为存储计算机可执行指令的存储器,所述计算机可执行指令在被执行时使所述处理器:a processor; and, a memory configured to store computer-executable instructions that, when executed, cause the processor to:
    基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销;Based on the payment information sent by the payment platform for the prepaid voucher, perform resource write-off of the prepaid voucher;
    根据核销结果确定所述预付凭证的预占资源额,以及基于所述预占资源额创建支付订单并向所述支付平台提交;Determine the reserved resource amount of the prepaid voucher according to the write-off result, and create a payment order based on the reserved resource amount and submit it to the payment platform;
    接收所述支付平台同步的所述支付订单的支付结果,并进行所述预付凭证的资源额扣减。Receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepaid voucher.
  22. 一种存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被处理器执行时实现以下流程:A storage medium used to store computer-executable instructions that implement the following process when executed by a processor:
    在获取到针对预付凭证的支付请求后,向所述预付凭证对应的服务平台发送支付信息;After obtaining the payment request for the prepaid voucher, send payment information to the service platform corresponding to the prepaid voucher;
    接收所述服务平台对所述支付信息进行资源核销后提交的支付订单;Receive the payment order submitted by the service platform after verifying the resources of the payment information;
    确定所述支付订单的支付方式,并按照所述支付方式对所述支付订单进行支付处理;Determine the payment method of the payment order, and perform payment processing on the payment order according to the payment method;
    向所述服务平台同步支付结果,以进行所述预付凭证的资源额扣减。 The payment result is synchronized with the service platform to deduct the resource amount of the prepaid voucher.
  23. 一种存储介质,用于存储计算机可执行指令,所述计算机可执行指令在被处理器执行时实现以下流程:A storage medium used to store computer-executable instructions that implement the following process when executed by a processor:
    基于支付平台针对预付凭证发送的支付信息,进行所述预付凭证的资源核销;Based on the payment information sent by the payment platform for the prepaid voucher, perform resource write-off of the prepaid voucher;
    根据核销结果确定所述预付凭证的预占资源额,以及基于所述预占资源额创建支付订单并向所述支付平台提交;Determine the reserved resource amount of the prepaid voucher according to the write-off result, and create a payment order based on the reserved resource amount and submit it to the payment platform;
    接收所述支付平台同步的所述支付订单的支付结果,并进行所述预付凭证的资源额扣减。 Receive the payment result of the payment order synchronized by the payment platform, and deduct the resource amount of the prepaid voucher.
PCT/CN2023/108743 2022-08-10 2023-07-21 Payment processing method and apparatus based on prepayment voucher WO2024032356A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210956185.8 2022-08-10
CN202210956185.8A CN115330372A (en) 2022-08-10 2022-08-10 Payment processing method and device based on prepaid voucher

Publications (1)

Publication Number Publication Date
WO2024032356A1 true WO2024032356A1 (en) 2024-02-15

Family

ID=83922519

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/108743 WO2024032356A1 (en) 2022-08-10 2023-07-21 Payment processing method and apparatus based on prepayment voucher

Country Status (2)

Country Link
CN (1) CN115330372A (en)
WO (1) WO2024032356A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115330372A (en) * 2022-08-10 2022-11-11 支付宝(杭州)信息技术有限公司 Payment processing method and device based on prepaid voucher

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120246019A1 (en) * 2009-02-09 2012-09-27 Giftcards.com LLC System and method for preventing fraud by generating new prepaid gift accounts
JP6059319B1 (en) * 2015-09-30 2017-01-11 三井住友カード株式会社 Price payment management system and price payment management method
CN109493032A (en) * 2018-12-12 2019-03-19 四川商通实业有限公司 The method and its system of tripartite's combined payment are realized based on prepaid card
CN111062710A (en) * 2019-11-20 2020-04-24 四川商通实业有限公司 APP-based multi-prepaid-card payment method and system
CN111476554A (en) * 2020-05-09 2020-07-31 苏州中仑网络科技有限公司 Combined payment system and method, cash register and storage medium in weak network environment
CN115330372A (en) * 2022-08-10 2022-11-11 支付宝(杭州)信息技术有限公司 Payment processing method and device based on prepaid voucher

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120246019A1 (en) * 2009-02-09 2012-09-27 Giftcards.com LLC System and method for preventing fraud by generating new prepaid gift accounts
JP6059319B1 (en) * 2015-09-30 2017-01-11 三井住友カード株式会社 Price payment management system and price payment management method
CN109493032A (en) * 2018-12-12 2019-03-19 四川商通实业有限公司 The method and its system of tripartite's combined payment are realized based on prepaid card
CN111062710A (en) * 2019-11-20 2020-04-24 四川商通实业有限公司 APP-based multi-prepaid-card payment method and system
CN111476554A (en) * 2020-05-09 2020-07-31 苏州中仑网络科技有限公司 Combined payment system and method, cash register and storage medium in weak network environment
CN115330372A (en) * 2022-08-10 2022-11-11 支付宝(杭州)信息技术有限公司 Payment processing method and device based on prepaid voucher

Also Published As

Publication number Publication date
CN115330372A (en) 2022-11-11

Similar Documents

Publication Publication Date Title
KR20200003374A (en) Method and apparatus for offline payment, service processing, and payment processing
CN107038569B (en) Information interaction method and device
CN107657448B (en) Account creating method, account recharging method, data synchronizing method and equipment
TW201944315A (en) Barcode image acquiring method, device, and equipment
CN112926971B (en) Payment method and device based on stored value card
WO2024032356A1 (en) Payment processing method and apparatus based on prepayment voucher
CN108764864A (en) A kind of method, apparatus and equipment for configuring payment flow, executing payment flow
CN112967046B (en) Associated payment processing method and device
CN110992040A (en) Transaction processing method, device and equipment
CN109003069A (en) A kind of resource backing method and device
CN111709733A (en) Resource transfer method, device and equipment
WO2022237572A1 (en) Payment method and apparatus, and device
CN108596581B (en) Verification method and device for resource transfer and electronic payment verification method and device
WO2024046121A1 (en) Service processing method and apparatus
CN113256426B (en) Data processing method, device, equipment and medium
WO2024032350A1 (en) Bill processing method and device for transaction bill
CN113421081A (en) Payment processing method and device
CN108280645A (en) The acquisition of payment code, payment request response method, device and equipment
CN110046877B (en) Account checking method and device and server
CN109658239B (en) Application function expansion method and device, request processing method and device
CN112529576A (en) Resource processing method and device and payment processing method and device
CN111340505A (en) Payment method and device and electronic equipment
CN113435889B (en) Transaction processing method and device based on credit
CN111985919B (en) Payment data processing method and device and electronic equipment
CN113419794B (en) Payment processing method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23851578

Country of ref document: EP

Kind code of ref document: A1