Categories: All - success - payment - order

by Akmal Rusdy Prasetyo 1 month ago

28

[R10 Payment] QOS - BizCenter DRM Query Order

The document outlines various scenarios and expected outcomes related to payment order processing and interactions with a DRM system. It includes edge cases such as retrying tasks and handling different order statuses like INIT, BIZ_

[R10 Payment] QOS - BizCenter DRM Query Order

[R10 Payment] QOS - BizCenter DRM Query Order

Note

dont change the mock, make sure still pending after maximum execute
if FINAL, check retryTask in bzs
check manual

Edge Cases

retryTask Payment to T, hit DRM
expect failed, order not update
change max execute, check in bzs
Push DRM 2 times, with same orderIds
expect success on 1st, failed on 2nd
invalid executor name
order status is BIZ_FAIL
order status is BIZ_SUCCESS
orderStatus is INIT
Push to DRM when switch GREY, aggregator not in whitelisted
expect failed
Push to DRM, aggregator in whitelisted (TELCO-all)
expect success
Push to DRM when switch GREY, aggregator in whitelisted (Specific whitelisted)
Push to DRM when switch N
expect failed, order not updated

Normal Scenario

Create order with TELCO and Electricity PAY_SUCCESS, push to DRM
NM_XXX_003
Create order PAY_SUCCESS, push to drm, electricity
NM_XXX_002
Create order pay_success, push to drm, aggregator narindo
NM_XXX_001

productQueryAfterDRM

in [BIZ_SUCCESS, BIZ_FAIL, PAY_SUCCESS]

DB_CHECK

bzs_retry_task

bizId = orderId

LOG_CHECK

logCheckRequest

check sgw if success trigger order query

use rpcId from retry task

sgw bizcenter

check if trigger retry task

use orderId

keyword

BIZ_ORDER_QUERY_DYNAMIC_RETRY

"UPDATE_DRM"

DRMRequest

value

valid-executor-email@dana.id-$orderId

attributeName

orderIds

resourceId

id.dana.bizcenter.biz.drm.QueryOrderDRMHandler

resourceDomain

Alipay.bizcenter

appName

bizcenter

productQuery

productQueryCheck

result.orderDetail

orderStatus

PAY_SUCCESS

true

productQueryRequest

orderCreateType

"BIZ_CENTER_ORDER"

acquirementId

"$acquirementId"

orderId

"$orderId"

payQuery

cashierPayQueryCheck

result.attributes.processingStatus

_in[success]

cashierPayQueryRequest

$cashierPayContext.result.cashierOrderId

cashierPay

cashierPayCheck

cashierPayRequest

verificationMethod

validateData

null

method

payMethod

channelIndex

BALANCE

cashierOrderId

$cashierMainContext.result.cashierOrderId

cashierMain

cashierMainCheck

cashierMainRequest

externalInfo

$externalInfo

productOrderBiller

productOrderCheck

result.success

'true'

productOrderRewrite

param

082225431220

goodsId

axis_102

productCode

PULSA_PREPAID

bizType

TELCO

PREPARE_USER