我遇到了Paypal定期付款的问题.CreateRecurringPaymentsProfile()返回已创建的配置文件(ProfileID)的ID.同时,我在IPN网址上收到以下确认:
payment_cycle - Daily
txn_type - recurring_payment_profile_
created
last_name - User
next_payment_date - 03:00:00 Oct 06, 2011 PDT
residence_country - US
initial_payment_amount - 0.00
currency_code - USD
time_created - 23:21:02 Oct 05, 2011 PDT
verify_sign - ...
period_type - Regular
payer_status - verified
test_ipn - 1
tax - 0.00
payer_email - ...
first_name - Test
receiver_email - ...
payer_id - ...
product_type - 1
shipping - 0.00
amount_per_cycle - 20.00
profile_status - Active
charset - windows-1252
notify_version - 3.4
amount …Run Code Online (Sandbox Code Playgroud) 我对Paypal的IPN有疑问.创建订阅配置文件(定期付款配置文件)后,在IPN上收到"recurring_payment_profile_created"类型的确认.在继续付款后,在IPN上收到"recurring_payment"类型的确认.问题是我应该如何确定付款(recurring_payment)属于唯一(特定)配置文件.
谢谢.
对不起,我的英语不好.我有WP 3.3.1和wp-e-commerce.3.8.7.6.2.在产品页面(使用wpsc-products_page.php模板)我有产品列表.我想按类别对这些产品进行分组.例如:
**Cat1
产品1
产品2
**Cat2
产品1
产品2
**Cat3
产品1
产品2
我尝试使用这种方法,但它不起作用
add_filter('posts_join', create_function('$a', 'global $wpdb; return $a . " INNER JOIN $wpdb->term_relationships ON ($wpdb->posts.ID = $wpdb->term_relationships.object_id) INNER JOIN $wpdb->term_taxonomy ON ($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id) ";'));
add_filter('posts_where', create_function('$a', 'global $wpdb; return $a . " AND $wpdb->term_taxonomy.taxonomy = \'wpsc_product_category\'";'));
add_filter('posts_orderby', create_function('$a','global $wpdb; return "$wpdb->term_taxonomy.term_id DESC";'));
query_posts('');
Run Code Online (Sandbox Code Playgroud)
提前谢谢你的回复!
paypal ×2
categories ×1
e-commerce ×1
paypal-ipn ×1
product ×1
recurring ×1
sql-order-by ×1
wordpress ×1