provider.DoAuthorize

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
frosty
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Jul 24, 2008 3:22 am

provider.DoAuthorize

Post by frosty » Wed Oct 29, 2008 12:18 pm

Hi I'm trying to get PayPalButton.asx link drectly to paypal. I've started adding

provider.DoAuthorize(authorizeTransactionRequest);

Any tips on the best way to do this.


PayPalButton.asx
#######################

PaymentGateway gateway = CommerceBuilder.Payments.Providers.PayPal.PayPalProvider.GetPayPalPaymentGateway(true);
if (gateway != null)
{
PayPalProvider provider = (PayPalProvider)gateway.GetInstance();
Control payNowButton = provider.GetPayNowButton(paymentItem.Order, paymentItem.PaymentId);
if (payNowButton != null) phPayNow.Controls.Add(payNowButton);


// is this right thing to do??
AuthorizeTransactionRequest authorizeTransactionRequest = new AuthorizeTransactionRequest(paymentItem, null);
provider.DoAuthorize(authorizeTransactionRequest);

}

Post Reply