Skip to content

Commit

Permalink
enable transak (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
klassare authored Nov 14, 2022
1 parent a5896a7 commit bd85f22
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
14 changes: 7 additions & 7 deletions src/app/components/modals/buy/buy.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,20 @@ <h3>Coinbase</h3>
<h4>Transfer from Coinbase</h4>
</div>
</div>
<div class="flex-row option" (click)="buyTez(BuyProviderType.Transak)">
<img src="assets/img/transak.png" />
<div class="text">
<h3>Transak</h3>
<h4>Bank transfers &amp; local payment methods in 120+ countries</h4>
</div>
</div>
<div class="flex-row option" (click)="buyTez(BuyProviderType.MoonPay)">
<img src="assets/img/moonpay.svg" />
<div class="text">
<h3>Moonpay</h3>
<h4>Cards &amp; bank transfers</h4>
</div>
</div>
<div class="flex-row option" (click)="buyTez(BuyProviderType.Transak)" style="display: none">
<img src="assets/img/transak.png" />
<div class="text">
<h3>Transak</h3>
<h4>Bank transfers &amp; local payment methods in 120+ countries</h4>
</div>
</div>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,9 @@ export class BuyComponent implements OnInit, OnDestroy {
XTZ: { address }
}
};
const apiKey = CONSTANTS.MAINNET ? 'f1336570-699b-4181-9bd1-cdd57206981f' : '3b0e81f3-37dc-41f3-9837-bd8d2c350313';
this.url = this.sanitizer.bypassSecurityTrustResourceUrl(
`https://${
this.dev ? 'staging-' : ''
}global.transak.com?apiKey=3b0e81f3-37dc-41f3-9837-bd8d2c350313&cryptoCurrencyCode=XTZ&walletAddressesData=${JSON.stringify(
`https://${!CONSTANTS.MAINNET ? 'staging-' : ''}global.transak.com?apiKey=${apiKey}&cryptoCurrencyCode=XTZ&walletAddressesData=${JSON.stringify(
walletAddressesData
)}&disableWalletAddressForm=true}`
);
Expand Down
2 changes: 1 addition & 1 deletion src/scss/components/modals/buy.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
color: v.$base-font-color-secondary;
}
}
&:nth-child(2) {
&:last-child {
margin: 0 0 0 0;
}
}
Expand Down

0 comments on commit bd85f22

Please sign in to comment.