我的目的是创建一个Recurring Profile并将company_id作为自定义参数传递给要存储的IPN数据库,在那里我可以创建一个支付与它所在的公司之间的关系。
我已经读过,在创建Recurring Payment Profile
以获取IPN database
中的某些自定义值时,您应该在PROFILEREFERENCE
参数中传递它,然后从rp_invoice_id
中检索它作为响应。
我无法获得所需的输出
我的要求:
$inputData = array(
'METHOD' => 'CreateRecurringPaymentsProfile',
'TOKEN' => $_GET['token'], //get from GetExpressCheckout
'PAYERID' => $billerInfo['PAYERID'], //from GetExpressCheckout response
'PROFILESTARTDATE' => date("Y-m-d h:i:s", strtotime("+5 seconds")), //2012-05-11T00:00:00Z #Billing date start, in UTC/GMT format
'DESC' => 'LeaveBuddy: subscription amount is $' . $bill .' for the provided service ($12 per user per year).', //#Profile description - same as billing agreement description
'BILLINGPERIOD' => 'Year', #Period of time between billings
'BILLINGFREQUENCY' => 1,#Frequency of charges
'AMT' => 10, //Todo: dynamically calculate the amt #The amount the buyer will pay in a payment period
'CURRENCYCODE' => 'USD',#The currency, e.g. US dollars
'COUNTRYCODE' => 'US',#The country code, e.g. US
'MAXFAILEDPAYMENTS' => '0',#Maximum failed payments before suspension of the profile
'PROFILEREFERENCE' => 'companyid=1', //my custom value
);
我得到的回应是:
{" InstantPaymentNotification" {" ID":" 553db30b-ea1c-4f68-8b5d-4fe5cbdd56cb"" notify_version":& #34; 3.8"" verify_sign":" A - 8MSCLabuvN8L.-MHjxC9uypBtAQZom1C7.mbS1Jv-J898ZO0eeOr9""的test_ipn":" 1"" ADDRESS_CITY":空," ADDRESS_COUNTRY":空," address_country_code":空," ADDRESS_NAME":空,& #34; ADDRESS_STATE":空," address_status":空," address_street":空," address_zip":空,"如first_name&#34 ;:"代码""姓氏":"助力器"" payer_business_name":空," PAYER_EMAIL":& #34; codebooster@gmail.com"," payer_id":" XXXXXXXX"" payer_status":"验证"&# 34; CONTACT_PHONE":无效," residence_country":"美国""业务":无效," ITEM_NAME":无效,& #34;&ITEM_NUMBER#34;:空,"量":空," RECEIVER_EMAIL":" boom@gmail.com"," receiver_id&#34 ;:空,"丘斯托米":空,"发票":空,"备忘录":空," option_name1":空," option_name2":空" option_selection1":空," option_selection2":空,"税":" 0.00"" AUTH_ID" :空," auth_exp":空," auth_amount":空,"的auth_status":空," num_cart_items":空,&#34 ; parent_txn_id":空," PAYMENT_DATE":空," PAYMENT_STATUS":空," payment_type":空," pending_reason&#34 ;:空," REASON_CODE":空," remaining_settle":空," SHIPPING_METHOD":空,"航运":" 0.00& #34;" transaction_entity":空," txn_id":" 316859739"" txn_type":" recurring_payment" " EXCHANGE_RATE":空," mc_currency":空," mc_fee":空," mc_gross":10," mc_handling& #34;:空," mc_shipping":空," payment_fee":空," payment_gross":空," settle_amount":空, " settle_currency":空,"一个uction_buyer_id":空," auction_closing_date":空," auction_multi_item":空," for_auction":空," subscr_date":空" subscr_effective":空,"间隔1":空,"间隔2":空," period3":空," amount1& #34;:空," AMOUNT2":空," AMOUNT3":空," mc_amount1":空," mc_amount2":空, " mc_amount3":空,"重复":空,"重新尝试":空," retry_at":空," recur_times&# 34;:空,"用户名":空,"密码":空," subscr_id":空," CASE_ID":空,& #34; case_type":null," case_creation_date":null," created":" 2015-04-27 03:54:51",&# 34;修改":" 2015-04-27 03:54:51"}," PaypalItem":[]}
所以我在这里找不到任何[rp_invoice_id]
参数,我的发票也显示为空。谁能告诉我我错过了什么?