dongzhanlu8890 2014-04-01 14:58 采纳率: 0%
浏览 37
已采纳

Authorize.net ARB信用卡问题

I can successfully create ARB subscriptions. But as far as I can tell from the documentation, the credit card is not validated until it is charged.

So it is my understanding that I need to use AIM and VOID a charge of 0.01.

$content =
    "<?xml version=\"1.0\" encoding=\"utf-8\"?>" .
    "<ARBCreateSubscriptionRequest xmlns=\"AnetApi/xml/v1/schema/AnetApiSchema.xsd\">" .
    "<merchantAuthentication>".
    "<name>" . $loginname . "</name>".
    "<transactionKey>" . $transactionkey . "</transactionKey>".
    "</merchantAuthentication>".
    "<refId>" . $refId . "</refId>".
    "<subscription>".
    "<name>" . "Payment" . "</name>".
    "<paymentSchedule>".
    "<interval>".
    "<length>". 1 ."</length>".
    "<unit>". "months" ."</unit>".
    "</interval>".
    "<startDate>" . $today . "</startDate>".
    "<totalOccurrences>". 9999 ."</totalOccurrences>".
    "<trialOccurrences>". 0 . "</trialOccurrences>".
    "</paymentSchedule>".
    "<amount>". $contractorRate ."</amount>".
    "<trialAmount>" . 0.00 . "</trialAmount>".
    "<payment>".
    "<creditCard>".
    "<cardNumber>" . $ccnumber . "</cardNumber>".
    "<expirationDate>" . $ccexpire . "</expirationDate>".
    "</creditCard>".
    "</payment>".
    "<billTo>".
    "<firstName>". $firstname . "</firstName>".
    "<lastName>" . $lastname . "</lastName>".
    "</billTo>".
    "</subscription>".
    "</ARBCreateSubscriptionRequest>";

//send the xml via curl
$response = send_request_via_curl($host,$path,$content);

So before I get a successful response from $response, I'd need to VOID a charge to their credit card.

Am I correct in this understanding? What would be the best way to go about doing so?

  • 写回答

1条回答 默认 最新

  • douhuigang9550 2014-04-01 15:00
    关注

    To verify the credit card is valid before creating the subscription you need to do an AUTH_ONLY for either $0.00 or $0.01 depending on your processor's requirements. If it is approved, and the amount is $0.01, you should then void that transaction. Then you can go ahead and create your subscription.

    There were some rules changes and AUTH_ONLYs for $0.01 and I am not 100% up to speed on them. But from what I understand, Visa and MasterCard wanted to do away with AUTH_ONLYs for any dollar amount. They wanted merchants to use $0.00 instead as that leaves no frozen funds on a user's card and makes the purpose of the AUTH_ONLY clear. Definitely contact the merchant account provider and see what these rules are and what their level of support for $0.00 AUTHs are.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程