• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / EDD_Amazon_Payments::link_transaction_id() – Given a transaction ID, generate a link to the Amazon transaction ID details

You appear to be a bot. Output may be restricted

Description

Given a transaction ID, generate a link to the Amazon transaction ID details

Usage

$string = EDD_Amazon_Payments::link_transaction_id( $transaction_id, $payment_id );

Parameters

$transaction_id
( string ) required – The Transaction ID
$payment_id
( int ) required – The payment ID for this transaction

Returns

string A link to the PayPal transaction details

Source

File name: easy-digital-downloads/includes/gateways/amazon-payments.php
Lines:

1 to 8 of 8
  public function link_transaction_id( $transaction_id, $payment_id ) {

    $base_url = 'https://sellercentral.amazon.com/hz/me/pmd/payment-details?orderReferenceId=';
    $transaction_url = '<a href="' . esc_url( $base_url . $transaction_id ) . '" target="_blank">' . $transaction_id . '</a>';

    return apply_filters( 'edd_' . $this->gateway_id . '_link_payment_details_transaction_id', $transaction_url );

  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 26th November 2019

Primary Sidebar

Information

Function name: EDD_Amazon_Payments::link_transaction_id
Class ref: EDD_Amazon_Payments
Plugin ref: Easy Digital Downloads
Version: 2.10.1
Sourcefile: includes/gateways/amazon-payments.php
File ref: includes/gateways/amazon-payments.php
Deprecated?: No
API Letters: A,E,L,P,T

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.7.1
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites