I will say yes and no.  Getting the data, collections in this case, from
VFP to post there may be difficult.  you are posting in an
httppost situation.

>From a PHP pov there are objects being created.   new
AnetAPI\TransactionRequestType(); you should be able to do that easily.
You then stuff it.  Still easy.  It is the defining the catching object to
receive the response.  That is where I think you are going to find the
difficulty.


// Create a TransactionRequestType object and add the previous objects to it
    $transactionRequestType = new AnetAPI\TransactionRequestType();
    $transactionRequestType->setTransactionType("authCaptureTransaction");
    $transactionRequestType->setAmount($amount);
    $transactionRequestType->setOrder($order);
    $transactionRequestType->setPayment($paymentOne);
    $transactionRequestType->setBillTo($customerAddress);
    $transactionRequestType->setCustomer($customerData);

$transactionRequestType->addToTransactionSettings($duplicateWindowSetting);
    $transactionRequestType->addToUserFields($merchantDefinedField1);
    $transactionRequestType->addToUserFields($merchantDefinedField2);

    // Assemble the complete transaction request
    $request = new AnetAPI\CreateTransactionRequest();
    $request->setMerchantAuthentication($merchantAuthentication);
    $request->setRefId($refId);
    $request->setTransactionRequest($transactionRequestType);

    // Create the controller and get the response
    $controller = new AnetController\CreateTransactionController($request);
    $response =
$controller->executeWithApiResponse(\net\authorize\api\constants\ANetEnvironment::SANDBOX);


    if ($response != null) {
        // Check to see if the API request was successfully received and
acted upon
        if ($response->getMessages()->getResultCode() ==
\SampleCode\Constants::RESPONSE_OK) {
            // Since the API request was successful, l

On Thu, Oct 26, 2017 at 2:42 PM, Vince Teachout <[email protected]> wrote:

> A friend of mine sent the following question, and I don't know the
> answer.  Does anyone know off the top of their head?
>
>
> "I have a VFP question if you do not mind.  I have a client with an old
> custom app in VFP 7 and 9.  They process credit cards using Authorize.net.
> Authorize.net is pushing everyone to a new API and I am tasked with
> migrating the client’s apps so they can use this new API (
> https://developer.authorize.net/api/reference/index.html).  Currently
> they use HTTP Posts to send in the CC info.
>
> Anyway, my question is this.  Authorize offers a development kit and
> example code using C#.  Therefore it should be .Net compliant and wouldn’t
> that mean I could use the same in a VFP application?"
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CAJidMYL=5qnsdjrr0xsh5fv4ddoesz2xrvwkrs7rf3hoysx...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to