WordPress.org

Making WordPress.org

Changeset 4157


Ignore:
Timestamp:
09/28/2016 12:59:16 PM (20 months ago)
Author:
kovshenin
Message:

WordCamp.org: Add the WordCamp URL and site ID to the Stripe metadata.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-payments/includes/sponsor-payment-stripe.php

    r4156 r4157  
    186186
    187187            $wordcamp_obj = get_post( $payment_data['wordcamp_id'] );
     188            $wordcamp_site_id = get_wordcamp_site_id( $wordcamp_obj );
     189            $wordcamp_site_url = set_url_scheme( esc_url_raw( get_blog_option( $wordcamp_site_id, 'home', '' ) ), 'https' );
    188190
    189191            require_once( __DIR__ . '/stripe-php/init.php' );
     
    199201                        'invoice_id' => $payment_data['invoice_id'],
    200202                        'wordcamp_id' => $payment_data['wordcamp_id'],
     203                        'wordcamp_site_id' => $wordcamp_site_id,
     204                        'wordcamp_url' => $wordcamp_site_url,
    201205                    ),
    202206                ) );
Note: See TracChangeset for help on using the changeset viewer.