Skip to main content

2 posts tagged with "fpay click"

View All Tags

ยท One min read
KK Lim

FPay Clickโ€‹

info

Files: TransferOTPStrategy.js, AppApprovalStrategy.js, LoginStrategy.js, MerchantService.js

  • store transaction id for under bank.transactions and core.transactions
  • added callback - store response from merchant.
note

1 - success

others - fail and will trigger the call back in FPay Core

  • added transactions_username during user login

FPay Coreโ€‹

info

Files: job.controller.ts, (new) transactions.service.ts

Prisma: added new columns

  • New [GET] /jobs/request-callback

  • New [POST] /jobs/request-submit/[request id]

  • package.json: added scripts for prisma db push.

Fallbackโ€‹

/jobs/request-callback
  • stuck in callback when link is not valid.

ยท One min read
KK Lim

Fpay Coreโ€‹

Merchant createโ€‹

  1. Added fees field.
  2. After successful post, it will return merchant code and secret.

Merchant requestโ€‹

  1. Input field : callback_url, response_url changed to optional.
  2. Input field : Added signature field (mandatory).
  3. Added signature checking base on sha256.

Generate signature testโ€‹

  • /merchant-requests/signature/test/create
  • /merchant-requests/signature/test/response

Fpay Clickโ€‹

Merchant serviceโ€‹

  1. Added saveTransactions & TransferOTPStrategy.
  2. Extra save transaction record to core.transactions with signature and response data added.
  3. Generate signature for merchant validation.
  4. Only return response_url to frontend after OTP.
  5. Corrected callback data sent.
  6. Added check for callback_url, only execute if url exists.