oracle apex集成hyper pay付款网关

时间:2019-02-16 17:47:11

标签: oracle payment-gateway

嗨,我正在尝试将HyperPay与Oracle ape 18.2集成,我在Rest Service下面获得了Checkout ID。 https://test.oppwa.com/v1/payments及以下是通过此服务的参数

authentication.userId:8a8294174d0595bb014d05d829e701d1
authentication.password:9TnJPc2n9h
authentication.entityId:8a8294174d0595bb014d05d82e5b01d2
amount:92
currency:EUR
paymentBrand:VISA
paymentType:DB
card.number:4200000000000000
card.holder:Jane Jones
card.expiryMonth:05
card.expiryYear:2020
card.cvv:123

我已经在Postaman上测试了此服务,在PostMan上可以正常使用

我在做什么请参见下面的脚本

DECLARE
   l_clob     CLOB;
   l_result   VARCHAR2 (32767);
BEGIN
   UTL_HTTP.SET_WALLET ('file:/u01/oracle/wallet', 'Adeel12#');
   l_clob :=
      apex_web_service.make_rest_request (
         p_url           => 'https://test.oppwa.com/v1/payments',
         p_http_method   => 'GET',
         p_username      => '8a8294174d0595bb014d05d829e701d1',
         p_password      => '9TnJPc2n9h',
         p_wallet_path   => 'file:/u01/oracle/wallet',
         p_wallet_pwd    => 'Adeel12#',
         p_parm_name     => APEX_UTIL.string_to_table ('userId:password:entityId:amount:currency:paymentBrand:paymentType:number:holder:expiryMonth:expiryYear:cvv'),
         p_parm_value    => APEX_UTIL.string_to_table ('8a8294174d0595bb014d05d829e701d1:9TnJPc2n9h:8a8294174d0595bb014d05d82e5b01d2:92:EUR:VISA:DB:4200000000000000:Jane Jones:05:2020:123'));
   --   apex_json.parse (l_json, l_return);

   -- Display the whole document returned.
   DBMS_OUTPUT.put_line ('l_clob=' || l_clob);
   l_result :=
      APEX_WEB_SERVICE.parse_xml (p_xml     => XMLTYPE (l_clob),
                                  p_xpath   => '//answer/number/text()');

   DBMS_OUTPUT.put_line ('l_result=' || l_result);

END;

当我运行此脚本时,它会在输出下方显示我

    l_clob={
  "result": {
    "code": "200.300.404",
    "description": "invalid or missing parameter",
    "parameterErrors": [
      {
        "name": "amount",
        "value": "92",
        "message": "is not an allowed parameter"
      },
      {
        "name": "cvv",
        "value": "123",
        "message": "is not an allowed parameter"
      },
      {
        "name": "paymentBrand",
        "value": "VISA",
        "message": "is not an allowed parameter"
      },
      {
        "name": "expiryMonth",
        "value": "05",
        "message": "is not an allowed parameter"
      },
      {
        "name": "entityId",
        "value": "8a8294174d0595bb014d05d82e5b01d2",
        "message": "is not an allowed parameter"
      },
      {
        "name": "holder",
        "value": "Jane Jones",
        "message": "is not an allowed parameter"
      },
      {
        "name": "expiryYear",
        "value": "2020",
        "message": "is not an allowed parameter"
      },
      {
        "name": "userId",
        "value": "8a8294174d0595bb014d05d829e701d1",
        "message": "is not an allowed parameter"
      },
      {
        "name": "paymentType",
        "value": "DB",
        "message": "is not an allowed parameter"
      },
      {
        "name": "number",
        "value": "4200000000000000",
        "message": "is not an allowed parameter"
      },
      {
        "name": "password",
        "value": "9TnJPc2n9h",
        "message": "is not an allowed parameter"
      },
      {
        "name": "currency",
        "value": "EUR",
        "message": "is not an allowed parameter"
      }
    ]
  },
  "buildNumber": "f18b0332cc2924d75317fe72fa1a156d66b3d6e6@2019-02-12 12:27:02 +0000",
  "timestamp": "2019-02-16 17:36:20+0000",
  "ndc": "9d44289e7e4746098026372c28225e9b"
}

我不理解此问题,我也想以Apex表单调用此操作以创建付款结帐

0 个答案:

没有答案