} else {
$host ||= $ENDPOINT_LIVE;
}
- my $url = 'https://' . $host .
- '/customerportal/MerchantServices/UpayTransactionStatus.ashx';
+ my $url = URI->new('https://' . $host .
+ '/customerportal/MerchantServices/UpayTransactionStatus.ashx');
+ $url->query_form('MERCHANT_ID' => $self->username,
+ 'ORDER_ID' => $self->token);
my $ua = LWP::UserAgent->new;
warn "Querying transaction status at $url\n" if $DEBUG;
- my $response = $ua->get($url,
- 'MERCHANT_ID' => $self->username,
- 'ORDER_ID' => $self->token
- );
+ my $response = $ua->get($url);
if ( $response->is_success ) {