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);
}