yixian 5 years ago
parent e5eb03cc2e
commit c89893d3fb

@ -5,11 +5,11 @@
<parent> <parent>
<groupId>au.com.royalpay.payment</groupId> <groupId>au.com.royalpay.payment</groupId>
<artifactId>payment-parent</artifactId> <artifactId>payment-parent</artifactId>
<version>2.1.48</version> <version>2.1.49</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId> <artifactId>manage</artifactId>
<version>2.3.8</version> <version>2.3.9</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jib-maven-plugin.version>2.2.0</jib-maven-plugin.version> <jib-maven-plugin.version>2.2.0</jib-maven-plugin.version>

@ -555,6 +555,10 @@ paths:
type: boolean type: boolean
default: false default: false
description: 如果希望禁止消费者使用信用卡支付可传入true description: 如果希望禁止消费者使用信用卡支付可传入true
disable_threeds:
type: boolean
default: false
description: 平台会协助商户自动开启3DS校验以减少盗刷风险。如果商户希望关闭这个功能可以提交当前参数为true。3DS校验需要消费者多一步银行端验证并且如小程序等场景无法实现网页跳转到银行页面导致流程无法继续
tokenize: tokenize:
type: boolean type: boolean
default: false default: false
@ -669,6 +673,10 @@ paths:
type: boolean type: boolean
default: false default: false
description: 如果希望禁止消费者使用信用卡支付可传入true description: 如果希望禁止消费者使用信用卡支付可传入true
disable_threeds:
type: boolean
default: false
description: 平台会协助商户自动开启3DS校验以减少盗刷风险。如果商户希望关闭这个功能可以提交当前参数为true。3DS校验需要消费者多一步银行端验证并且如小程序等场景无法实现网页跳转到银行页面导致流程无法继续
customer: customer:
$ref: 'components_order.yml#/cardCustomerParam' $ref: 'components_order.yml#/cardCustomerParam'
responses: responses:
@ -677,7 +685,13 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: 'components_order.yml#/orderBasicResponse' allOf:
- $ref: 'components_order.yml#/orderBasicResponse'
- type: object
properties:
pay_url:
type: string
description: 当开启3DS校验时系统会返回当前参数商户应该引导消费者跳转到此页面完成3DS认证
/micropay/partners/{partner_code}/orders/{partner_order_id}: /micropay/partners/{partner_code}/orders/{partner_order_id}:
put: put:
summary: 付款码下单 summary: 付款码下单

@ -568,6 +568,10 @@ paths:
type: boolean type: boolean
default: false default: false
description: pass true if merchant want to disable credit cards from paying to this order. description: pass true if merchant want to disable credit cards from paying to this order.
disable_threeds:
type: boolean
default: false
description: We will help merchants to enable 3DS verify by default. If you want to disable this feature please set this parameter as true
tokenize: tokenize:
type: boolean type: boolean
default: false default: false
@ -619,7 +623,7 @@ paths:
put: put:
summary: Create Card Order summary: Create Card Order
description: | description: |
Input https://channel.rpayplus.com/channel/v1/view/card_input_frame.js in merchant's webpage. Input https://channel-gateway.royalpay.com.au/channel/v1/view/card_input_frame.js in merchant's webpage.
After called commit, it will return `key_id` and `secret` parameter asyncronized by callback. After called commit, it will return `key_id` and `secret` parameter asyncronized by callback.
Post these parameter to royalpay and finish payment directly. Post these parameter to royalpay and finish payment directly.
@ -690,6 +694,10 @@ paths:
type: boolean type: boolean
default: false default: false
description: Pass true if want to refuse credit cards. description: Pass true if want to refuse credit cards.
disable_threeds:
type: boolean
default: false
description: We will help merchants to enable 3DS verify by default. If you want to disable this feature please set this parameter as true
customer: customer:
$ref: 'components_order.yml#/cardCustomerParam' $ref: 'components_order.yml#/cardCustomerParam'
responses: responses:
@ -698,7 +706,13 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: 'components_order.yml#/orderBasicResponse' allOf:
- $ref: 'components_order.yml#/orderBasicResponse'
- type: object
properties:
pay_url:
type: string
description: If order requires 3DS verify. it will return this parameter. Merchants's system should guide customer to redirect to this url and finish 3DS verify. Remember to add signatures and return_url param
/micropay/partners/{partner_code}/orders/{partner_order_id}: /micropay/partners/{partner_code}/orders/{partner_order_id}:
put: put:
summary: Retail Passive Payment Order summary: Retail Passive Payment Order

@ -1,13 +1,13 @@
package au.com.royalpay.payment.manage.mappers.payment; package au.com.royalpay.payment.manage.mappers.payment;
import com.alibaba.fastjson.JSONObject;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;
import com.yixsoft.support.mybatis.autosql.annotations.AdvanceSelect; import com.yixsoft.support.mybatis.autosql.annotations.AdvanceSelect;
import com.yixsoft.support.mybatis.autosql.annotations.AutoMapper; import com.yixsoft.support.mybatis.autosql.annotations.AutoMapper;
import com.yixsoft.support.mybatis.autosql.annotations.AutoSql; import com.yixsoft.support.mybatis.autosql.annotations.AutoSql;
import com.yixsoft.support.mybatis.autosql.annotations.SqlType; import com.yixsoft.support.mybatis.autosql.annotations.SqlType;
import com.yixsoft.support.mybatis.paginator.annotations.CountRef; import com.yixsoft.support.mybatis.paginator.annotations.CountRef;
import com.alibaba.fastjson.JSONObject;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.executor.keygen.Jdbc3KeyGenerator; import org.apache.ibatis.executor.keygen.Jdbc3KeyGenerator;
@ -20,8 +20,6 @@ import java.util.List;
*/ */
@AutoMapper(tablename = "pmt_transactions", pkName = "transaction_id", keyGenerator = Jdbc3KeyGenerator.class) @AutoMapper(tablename = "pmt_transactions", pkName = "transaction_id", keyGenerator = Jdbc3KeyGenerator.class)
public interface TransactionMapper { public interface TransactionMapper {
@AutoSql(SqlType.INSERT)
void save(JSONObject transaction);
@CountRef(".countTransFlowPage") @CountRef(".countTransFlowPage")
PageList<JSONObject> listTransFlowPage(JSONObject params, PageBounds pagination); PageList<JSONObject> listTransFlowPage(JSONObject params, PageBounds pagination);
@ -38,9 +36,6 @@ public interface TransactionMapper {
@AdvanceSelect(addonWhereClause = "transaction_type = 'Credit'") @AdvanceSelect(addonWhereClause = "transaction_type = 'Credit'")
JSONObject findByOrderId(@Param("order_id") String orderId); JSONObject findByOrderId(@Param("order_id") String orderId);
@AutoSql(SqlType.UPDATE)
void update(JSONObject transaction);
JSONObject findLastIncome(); JSONObject findLastIncome();
double getClientUnClearedAmount(@Param("client_id") int clientId); double getClientUnClearedAmount(@Param("client_id") int clientId);

@ -10,7 +10,16 @@ $(function () {
data: JSON.stringify(secretData), data: JSON.stringify(secretData),
contentType: 'application/json', contentType: 'application/json',
method: 'POST', method: 'POST',
success: function () { success: function (res) {
if (res.sdk_params) {
let threeDsParams = JSON.parse(res.sdk_params);
let form = $('<form></form>').attr('action', threeDsParams.acs_url).attr('method', 'post').css('display', 'none');
$('<input>').attr('name', 'paReq').val(threeDsParams.pa_req).attr('type', 'hidden').appendTo(form);
$('<input>').attr('name', 'TermURL').val(threeDsParams.term_url).attr('type', 'hidden').appendTo(form);
$(body).append(form);
form.commit();
return;
}
startCheckOrder(window.client_moniker, window.partner_order_id); startCheckOrder(window.client_moniker, window.partner_order_id);
}, },
error: function (jqXHR) { error: function (jqXHR) {

Loading…
Cancel
Save