Not getting payment_status in subscription payment response

harshadakhire
Contributor
Contributor

Hi ,

I do not get payment_status in my response. I don't know why this happening. i have attached my form.

<form name = "myform" action = "<?php echo $paypal_url; ?>" method = "post" target = "_top">
                            <input type="hidden" name="cmd" value="_xclick-subscriptions">
                            <input type="hidden" name = "business" value = "<?php echo $merchant_email; ?>">
                            <input type="hidden" name="lc" value="IN">
                            <input type="hidden" name = "item_name" value = "<?php echo $product_name ?>">
                            <input type="hidden" name="no_note" value="1">
                            <input type="hidden" name="src" value="1">
                            <input type="hidden" name="src" value="1">
                            <?php if (!empty($total_cycle)) { ?>
                                <input type="hidden" name="srt" value="<?php echo $total_cycle; ?>">
                            <?php } ?>
                            <input type="hidden" name="a3" value="<?php echo $cycle_amount; ?>">
                            <input type="hidden" name="p3" value="1">
                            <input type="hidden" name="t3" value="<?php echo $cycle; ?>">
                            <input type="hidden" name="currency_code" value="<?php echo $product_currency; ?>">
                            <input type='hidden' name='rm' value='2'>
                            <input type = "hidden" name = "cancel_return" value = "<?php echo $cancel_return ?>">
                            <input type = "hidden" name = "notify_url" value = "<?php echo $success_return; ?>">
                            <input type = "hidden" name = "return" value = "<?php echo $success_return; ?>">
                            <input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_subscribeCC_LG.gif:NonHostedGuest">
                        </form>
#-----my response----###
array (
'txn_type' => 'subscr_signup',
'subscr_id' => 'I-85SBEA9SDRLG',
'last_name' => 'nivase',
'residence_country' => 'US',
'mc_currency' => 'USD',
'item_name' => 'Business',
'business' => '-edited-',
'amount3' => '20.99',
'recurring' => '1',
'address_street' => '1 Main St',
'payer_status' => 'verified',
'payer_email' => '--edited--',
'address_status' => 'confirmed',
'first_name' => 'kiran',
'receiver_email' => '--edited---',
'address_country_code' => 'US',
'payer_id' => 'LSDHH872Y8MHG',
'address_city' => 'San Jose',
'reattempt' => '1',
'recur_times' => '12',
'address_state' => 'CA',
'subscr_date' => '02:04:57 Jul 10, 2018 PDT',
'address_zip' => '95131',
'charset' => 'windows-1252',
'period3' => '1 Y',
'address_country' => 'United States',
'mc_amount3' => '20.99',
'address_name' => 'kiran nivase',
'auth' => 'AFQQlugJ2GOwvSd3dsOMefA-n9MTeHs.EnxTm4vkQwgWThiKsf6Ib4cXkzKwYvwAWnAhynVyHnO.MvbOElNm4OQ',
'form_charset' => 'UTF-8',
)
Login to Me Too
1 REPLY 1

cryfcad
Member
Member

The

 'txn_type' => 'subscr_signup'

doesn't have the payment_status attribute as you can see in some of PayPal's documentation.

 

On the other hand what I find strange is that you do not get subscr_payment for the subscr_signup even though a payment has been done for the subscription. According to forum posts from 15 years ago they used to send both subscr_signup and subscr_payment on a subscription created and paid but at the moment it looks like only subscr_signup is sent when the first payment is done but I lack more evidence/documentation for this assumption so if anyone can confirm it would be great.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.